Fix redrafting a currently-editing post not leaving edit mode (#20023)

lolsob-rspec
Claire 2022-11-08 04:06:54 +01:00 committed by GitHub
parent f48dcd025b
commit 793cc2096d
1 changed files with 1 additions and 0 deletions

View File

@ -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);