From cf1fa73347c9ca2b1c4f14521e990feba7509e2e Mon Sep 17 00:00:00 2001 From: ThibG Date: Tue, 31 Mar 2020 14:10:18 +0200 Subject: Fix content warning being unnecessarily cleared when enabling/disabling CW (#13348) --- app/javascript/mastodon/reducers/compose.js | 1 - 1 file changed, 1 deletion(-) 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()); -- cgit