diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-29 15:19:27 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-05-29 16:26:39 +0200 |
commit | 532fb8e2150c70c627d57f9f72f8232606976a4a (patch) | |
tree | baaf8ccab3a9bccc81488af9012eee41bd2931a2 | |
parent | 6a1544bd4618706204eb8220c9da984be3103aa1 (diff) |
Fix error when unmuting a domain without listing muted domains first
-rw-r--r-- | app/javascript/flavours/glitch/reducers/domain_lists.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/domain_lists.js b/app/javascript/flavours/glitch/reducers/domain_lists.js index a9e3519f3..eff97fbd6 100644 --- a/app/javascript/flavours/glitch/reducers/domain_lists.js +++ b/app/javascript/flavours/glitch/reducers/domain_lists.js @@ -6,7 +6,9 @@ import { import { Map as ImmutableMap, OrderedSet as ImmutableOrderedSet } from 'immutable'; const initialState = ImmutableMap({ - blocks: ImmutableMap(), + blocks: ImmutableMap({ + items: ImmutableOrderedSet(), + }), }); export default function domainLists(state = initialState, action) { |