about summary refs log tree commit diff
path: root/app/javascript/mastodon/reducers/compose.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-08 04:06:54 +0100
committerGitHub <noreply@github.com>2022-11-08 04:06:54 +0100
commit782b6835f786385c41c6455f2a251d1925b19eb5 (patch)
tree54675dc3e99550289245301e14033dc6c107d9e7 /app/javascript/mastodon/reducers/compose.js
parent833d9c2f1c66b97faf11fb285a8b639fdca24069 (diff)
Fix redrafting a currently-editing post not leaving edit mode (#20023)
Diffstat (limited to 'app/javascript/mastodon/reducers/compose.js')
-rw-r--r--app/javascript/mastodon/reducers/compose.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index e4601e471..ad384bd0b 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);