diff --git a/pkg/interface/chat/src/js/components/root.js b/pkg/interface/chat/src/js/components/root.js index 718fd6b19..7f0031d79 100644 --- a/pkg/interface/chat/src/js/components/root.js +++ b/pkg/interface/chat/src/js/components/root.js @@ -52,7 +52,7 @@ export class Root extends Component { inbox={state.inbox} messagePreviews={messagePreviews} associations={associations} - selectedGroups={state.selected} + selectedGroups={state.selectedGroups} contacts={contacts} invites={invites} unreads={unreads} diff --git a/pkg/interface/chat/src/js/reducers/local.js b/pkg/interface/chat/src/js/reducers/local.js index ce76f89cb..56a26aefe 100644 --- a/pkg/interface/chat/src/js/reducers/local.js +++ b/pkg/interface/chat/src/js/reducers/local.js @@ -27,7 +27,7 @@ export class LocalReducer { setSelected(obj, state) { let data = _.has(obj, 'selected', false); if (data) { - state.selected = obj.selected; + state.selectedGroups = obj.selected; } } } \ No newline at end of file diff --git a/pkg/interface/chat/src/js/store.js b/pkg/interface/chat/src/js/store.js index cb8150b44..aa2bffe84 100644 --- a/pkg/interface/chat/src/js/store.js +++ b/pkg/interface/chat/src/js/store.js @@ -22,7 +22,7 @@ class Store { contacts: {} }, spinner: false, - selected: [], + selectedGroups: [], sidebarShown: true, pendingMessages: new Map([]), chatInitialized: false diff --git a/pkg/interface/groups/src/js/components/root.js b/pkg/interface/groups/src/js/components/root.js index a1dbffd33..5ea98087a 100644 --- a/pkg/interface/groups/src/js/components/root.js +++ b/pkg/interface/groups/src/js/components/root.js @@ -35,7 +35,7 @@ export class Root extends Component { (!!state.invites && '/contacts' in state.invites) ? state.invites['/contacts'] : {}; let associations = !!state.associations ? state.associations : {}; - let selectedGroups = !!state.selected ? state.selected : []; + let selectedGroups = !!state.selectedGroups ? state.selectedGroups : []; return ( diff --git a/pkg/interface/groups/src/js/reducers/local.js b/pkg/interface/groups/src/js/reducers/local.js index 6e058a85b..2e615bb41 100644 --- a/pkg/interface/groups/src/js/reducers/local.js +++ b/pkg/interface/groups/src/js/reducers/local.js @@ -18,7 +18,7 @@ export class LocalReducer { setSelected(json, state) { let data = _.has(json, 'selected', false); if (data) { - state.selected = json.selected; + state.selectedGroups = json.selected; } } } \ No newline at end of file diff --git a/pkg/interface/groups/src/js/store.js b/pkg/interface/groups/src/js/store.js index a0bc23c6a..c712b9b82 100644 --- a/pkg/interface/groups/src/js/store.js +++ b/pkg/interface/groups/src/js/store.js @@ -15,7 +15,7 @@ class Store { associations: {}, permissions: {}, invites: {}, - selected: [], + selectedGroups: [], spinner: false }; diff --git a/pkg/interface/link/src/js/components/root.js b/pkg/interface/link/src/js/components/root.js index 8cbaf57e6..3ac7f1cda 100644 --- a/pkg/interface/link/src/js/components/root.js +++ b/pkg/interface/link/src/js/components/root.js @@ -41,7 +41,7 @@ export class Root extends Component { const invites = state.invites ? state.invites : {}; - let selectedGroups = !!state.selected ? state.selected : []; + let selectedGroups = !!state.selectedGroups ? state.selectedGroups : []; return ( diff --git a/pkg/interface/link/src/js/reducers/local.js b/pkg/interface/link/src/js/reducers/local.js index 819b7ad73..8b6f5fb98 100644 --- a/pkg/interface/link/src/js/reducers/local.js +++ b/pkg/interface/link/src/js/reducers/local.js @@ -26,7 +26,7 @@ export class LocalReducer { setSelected(obj, state) { let data = _.has(obj, 'selected', false); if (data) { - state.selected = obj.selected; + state.selectedGroups = obj.selected; } } } \ No newline at end of file diff --git a/pkg/interface/link/src/js/store.js b/pkg/interface/link/src/js/store.js index ce42c8b7b..24e4ea67f 100644 --- a/pkg/interface/link/src/js/store.js +++ b/pkg/interface/link/src/js/store.js @@ -20,7 +20,7 @@ class Store { contacts: {} }, invites: {}, - selected: [], + selectedGroups: [], links: {}, listening: new Set(), comments: {}, diff --git a/pkg/interface/publish/src/js/components/root.js b/pkg/interface/publish/src/js/components/root.js index 274d22828..dc2fc953e 100644 --- a/pkg/interface/publish/src/js/components/root.js +++ b/pkg/interface/publish/src/js/components/root.js @@ -24,7 +24,7 @@ export class Root extends Component { let contacts = !!state.contacts ? state.contacts : {}; let associations = !!state.associations ? state.associations : {contacts: {}} - let selectedGroups = !!state.selected ? state.selected : []; + let selectedGroups = !!state.selectedGroups ? state.selectedGroups : []; return ( diff --git a/pkg/interface/publish/src/js/reducers/response.js b/pkg/interface/publish/src/js/reducers/response.js index 9a9553c02..6bc14e35c 100644 --- a/pkg/interface/publish/src/js/reducers/response.js +++ b/pkg/interface/publish/src/js/reducers/response.js @@ -214,7 +214,7 @@ export class ResponseReducer { setSelected(json, state) { let data = _.has(json.data, 'selected', false); if (data) { - state.selected = json.data.selected; + state.selectedGroups = json.data.selected; } } diff --git a/pkg/interface/publish/src/js/store.js b/pkg/interface/publish/src/js/store.js index f6a29db14..3eddbdf04 100644 --- a/pkg/interface/publish/src/js/store.js +++ b/pkg/interface/publish/src/js/store.js @@ -17,7 +17,7 @@ class Store { }, permissions: {}, invites: {}, - selected: [], + selectedGroups: [], spinner: false, sidebarShown: true }