about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-29 15:19:27 +0200
committerThibG <thib@sitedethib.com>2018-05-29 16:26:39 +0200
commit532fb8e2150c70c627d57f9f72f8232606976a4a (patch)
treebaaf8ccab3a9bccc81488af9012eee41bd2931a2 /app
parent6a1544bd4618706204eb8220c9da984be3103aa1 (diff)
Fix error when unmuting a domain without listing muted domains first
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/reducers/domain_lists.js4
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) {