From: ThibG Date: Tue, 31 Mar 2020 12:10:18 +0000 (+0200) Subject: Fix content warning being unnecessarily cleared when enabling/disabling CW (#13348) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=cf1fa73347c9ca2b1c4f14521e990feba7509e2e;p=mastodon.git Fix content warning being unnecessarily cleared when enabling/disabling CW (#13348) --- diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index c6653fe4c..e6e6d2ae1 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -261,7 +261,6 @@ export default function compose(state = initialState, action) { }); case COMPOSE_SPOILERNESS_CHANGE: return state.withMutations(map => { - map.set('spoiler_text', ''); map.set('spoiler', !state.get('spoiler')); map.set('idempotencyKey', uuid());