Combine init actions
This commit is contained in:
parent
02e9df865e
commit
d844f6ee1a
13 changed files with 228 additions and 232 deletions
|
@ -76,9 +76,9 @@ export default createReducer(
|
|||
state[network].editedNick = null;
|
||||
},
|
||||
|
||||
[actions.socket.NETWORKS](state, { data }) {
|
||||
if (data) {
|
||||
data.forEach(
|
||||
[actions.INIT](state, { networks }) {
|
||||
if (networks) {
|
||||
networks.forEach(
|
||||
({ host, name = host, nick, connected, error, features = {} }) => {
|
||||
state[host] = {
|
||||
name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue