mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-17 20:16:14 +00:00
Fix editing description of media uploads with custom thumbnails (#32221)
This commit is contained in:
parent
b5006539c9
commit
f760899b04
|
@ -402,7 +402,7 @@ export default function compose(state = initialState, action) {
|
|||
.set('isUploadingThumbnail', 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', item.get('unattached'));
|
||||
}
|
||||
|
||||
return item;
|
||||
|
|
Loading…
Reference in a new issue