From 2267a79be88f77009b3026ea08c778d03683af75 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Wed, 8 Jun 2016 15:41:47 +0200 Subject: [PATCH] Fix JS error for topologies where only some nodes have networks --- client/app/scripts/reducers/root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/scripts/reducers/root.js b/client/app/scripts/reducers/root.js index 968400a01..58d9c0ae6 100644 --- a/client/app/scripts/reducers/root.js +++ b/client/app/scripts/reducers/root.js @@ -545,7 +545,7 @@ export function rootReducer(state = initialState, action) { if (networkPrefix) { state = state.update('nodes', nodes => nodes.map(node => node.update('networks', - networks => networks.map(n => n.set('colorKey', + networks => networks && networks.map(n => n.set('colorKey', n.get('colorKey').substr(networkPrefix.length)))))); state = state.update('availableNetworks',