Skip to content

Commit

Permalink
Fix being stuck in edit mode when deleting the edited status (#22126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Dec 15, 2022
1 parent 8556a64 commit ebf1d74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/mastodon/reducers/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ export default function compose(state = initialState, action) {
case TIMELINE_DELETE:
if (action.id === state.get('in_reply_to')) {
return state.set('in_reply_to', null);
} else if (action.id === state.get('id')) {
return state.set('id', null);
} else {
return state;
}
Expand Down

0 comments on commit ebf1d74

Please sign in to comment.