Skip to content

Commit

Permalink
Fix editing description of media uploads with custom thumbnails (mast…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Oct 4, 2024
1 parent 4a2d392 commit 404f467
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 @@ -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;
Expand Down

0 comments on commit 404f467

Please sign in to comment.