mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-19 13:47:35 +00:00
Fix media metadata being only editable once (#20665)
This commit is contained in:
parent
75299a042c
commit
2d54986a03
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue