mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 10:13:42 +01:00
Fix being stuck in edit mode when deleting the edited status (#22126)
This commit is contained in:
parent
8556a649d5
commit
ebf1d74e40
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,8 @@ export default function compose(state = initialState, action) {
|
||||||
case TIMELINE_DELETE:
|
case TIMELINE_DELETE:
|
||||||
if (action.id === state.get('in_reply_to')) {
|
if (action.id === state.get('in_reply_to')) {
|
||||||
return state.set('in_reply_to', null);
|
return state.set('in_reply_to', null);
|
||||||
|
} else if (action.id === state.get('id')) {
|
||||||
|
return state.set('id', null);
|
||||||
} else {
|
} else {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue