Fix error when unmuting a domain without listing muted domains first

master
Thibaut Girka 7 years ago committed by ThibG
parent 6a1544bd46
commit 532fb8e215
  1. 4
      app/javascript/flavours/glitch/reducers/domain_lists.js

@ -6,7 +6,9 @@ import {
import { Map as ImmutableMap, OrderedSet as ImmutableOrderedSet } from 'immutable'; import { Map as ImmutableMap, OrderedSet as ImmutableOrderedSet } from 'immutable';
const initialState = ImmutableMap({ const initialState = ImmutableMap({
blocks: ImmutableMap(), blocks: ImmutableMap({
items: ImmutableOrderedSet(),
}),
}); });
export default function domainLists(state = initialState, action) { export default function domainLists(state = initialState, action) {

Loading…
Cancel
Save