about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-05-29 16:25:05 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-05-29 16:25:05 +0200
commit0345cd5a0f434a43ea988a2b50ab6f8597bcf58e (patch)
treec2744bdaf7fb131afc12b80e0dfdfdd5796a3982 /app
parent90908fc24ba57c877de75fe117b8cc234e29d4f0 (diff)
Fix error when unmuting a domain without listing muted domains first (#7670)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/reducers/domain_lists.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/domain_lists.js b/app/javascript/mastodon/reducers/domain_lists.js
index a9e3519f3..eff97fbd6 100644
--- a/app/javascript/mastodon/reducers/domain_lists.js
+++ b/app/javascript/mastodon/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) {