diff --git a/src/components/Visualization/Visualization.js b/src/components/Visualization/Visualization.js index 1a7228a74c..4266c00f68 100644 --- a/src/components/Visualization/Visualization.js +++ b/src/components/Visualization/Visualization.js @@ -246,9 +246,11 @@ export const visualizationSelector = createSelector( (current, disabledOptions) => { const visualization = cloneDeep(current) - Object.keys(disabledOptions).forEach( - (option) => delete visualization[option] - ) + if (visualization) { + Object.keys(disabledOptions).forEach( + (option) => delete visualization[option] + ) + } return visualization }