forked from mirrors/catstodon
[Glitch] Fix media metadata being only editable once
Port 2d54986a03
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
9ab4e3fc6d
commit
96c1ef6d50
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,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