Skip to content

Commit

Permalink
Fix media metadata being only editable once (mastodon#20665)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Nov 14, 2022
1 parent 75299a0 commit 2d54986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/reducers/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export default function compose(state = initialState, action) {
.setIn(['media_modal', 'dirty'], false)
.update('media_attachments', list => list.map(item => {
if (item.get('id') === action.media.id) {
return fromJS(action.media);
return fromJS(action.media).set('unattached', true);
}

return item;
Expand Down

0 comments on commit 2d54986

Please sign in to comment.