Fix store saving

This commit is contained in:
HenryNguyen5 2018-02-08 18:49:24 -05:00
parent 2c9de47f78
commit 3952380363
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ function rehydrateCustomNodes(
state: ConfigState['nodes']['customNodes'],
networkState: ConfigState['networks']
) {
const networkExists = (networkId: string) => Object.keys(networkState).includes(networkId);
const networkExists = (networkId: string) =>
Object.keys(networkState.customNetworks).includes(networkId) ||
Object.keys(networkState.staticNetworks).includes(networkId);
const rehydratedCustomNodes = Object.entries(state).reduce(
(hydratedNodes, [customNodeId, configToHydrate]) => {