about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-14 18:45:54 +0100
committerGitHub <noreply@github.com>2022-11-14 18:45:54 +0100
commita34aa2a5f99200f313942af60ead3d5805de3998 (patch)
tree9f4030e4ab62ce02f2ed194d9dfde94fe8761de3 /app/javascript/flavours
parent72335694744da87cbfaff20992cb36817f6f8a60 (diff)
parent96c1ef6d5075cdab9c4340e4b999737e3c7d1589 (diff)
Merge pull request #1927 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index 18e437bbc..1edc70add 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -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;