about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-14 17:52:31 +0100
committerGitHub <noreply@github.com>2022-11-14 17:52:31 +0100
commit2d54986a03675dbad940948177037ce2f12d11b9 (patch)
treef5cb4c5e4253a27d98a400d63ff5112fb2982152
parent75299a042c8ead006a059fe13abf790580252660 (diff)
Fix media metadata being only editable once (#20665)
-rw-r--r--app/javascript/mastodon/reducers/compose.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index afb8b40c1..8cc7bf520 100644
--- a/app/javascript/mastodon/reducers/compose.js
+++ b/app/javascript/mastodon/reducers/compose.js
@@ -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;