From 35c814e9120c7c01a51b4cced3e2d31c512d9ab2 Mon Sep 17 00:00:00 2001 From: Filip Barl Date: Mon, 23 Oct 2017 16:39:34 +0200 Subject: [PATCH] Make sure only proper numerical values are cached. --- client/app/scripts/actions/app-actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js index 1cd740407..03350c590 100644 --- a/client/app/scripts/actions/app-actions.js +++ b/client/app/scripts/actions/app-actions.js @@ -405,7 +405,8 @@ export function clickTopology(topologyId) { export function cacheZoomState(zoomState) { return { type: ActionTypes.CACHE_ZOOM_STATE, - zoomState + // Make sure only proper numerical values are cached. + zoomState: zoomState.filter(value => !window.isNaN(value)), }; }