mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Make sure only proper numerical values are cached.
This commit is contained in:
@@ -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)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user