mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Fix JS error for topologies where only some nodes have networks
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user