about summary refs log tree commit diff
path: root/app/assets/javascripts/components/reducers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-13 17:20:18 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-13 17:20:18 +0100
commit677e95031e179ccdd69162002ccbfb482f396e4e (patch)
tree1b7b02b4335772e54f412eecc11e8ef56a1286e3 /app/assets/javascripts/components/reducers
parent2d8a4c4390acba310972d7dac21b93c4e2ac9f4e (diff)
Clean up collapsible components
Diffstat (limited to 'app/assets/javascripts/components/reducers')
-rw-r--r--app/assets/javascripts/components/reducers/compose.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx
index 042a2c67d..ef8cde75b 100644
--- a/app/assets/javascripts/components/reducers/compose.jsx
+++ b/app/assets/javascripts/components/reducers/compose.jsx
@@ -89,7 +89,7 @@ function removeMedia(state, mediaId) {
     map.update('text', text => text.replace(media.get('text_url'), '').trim());
 
     if (prevSize === 1) {
-      map.update('sensitive', false);
+      map.set('sensitive', false);
     }
   });
 };