Fix store saving
This commit is contained in:
parent
2c9de47f78
commit
3952380363
|
@ -138,7 +138,9 @@ function rehydrateCustomNodes(
|
||||||
state: ConfigState['nodes']['customNodes'],
|
state: ConfigState['nodes']['customNodes'],
|
||||||
networkState: ConfigState['networks']
|
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(
|
const rehydratedCustomNodes = Object.entries(state).reduce(
|
||||||
(hydratedNodes, [customNodeId, configToHydrate]) => {
|
(hydratedNodes, [customNodeId, configToHydrate]) => {
|
||||||
|
|
Loading…
Reference in New Issue