From 793cc2096d0f99bb70318d3d734fe162e8e9b28b Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 8 Nov 2022 04:06:54 +0100 Subject: [PATCH] Fix redrafting a currently-editing post not leaving edit mode (#20023) --- app/javascript/mastodon/reducers/compose.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index e4601e4715..ad384bd0b5 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -452,6 +452,7 @@ export default function compose(state = initialState, action) { map.set('idempotencyKey', uuid()); map.set('sensitive', action.status.get('sensitive')); map.set('language', action.status.get('language')); + map.set('id', null); if (action.status.get('spoiler_text').length > 0) { map.set('spoiler', true);