Fix editing description of media uploads with custom thumbnails (#32221)

pull/2867/head
Claire 2024-10-02 15:29:23 +02:00 committed by GitHub
parent b5006539c9
commit f760899b04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ export default function compose(state = initialState, action) {
.set('isUploadingThumbnail', false) .set('isUploadingThumbnail', false)
.update('media_attachments', list => list.map(item => { .update('media_attachments', list => list.map(item => {
if (item.get('id') === action.media.id) { if (item.get('id') === action.media.id) {
return fromJS(action.media); return fromJS(action.media).set('unattached', item.get('unattached'));
} }
return item; return item;