From 99fbed7d1af6cac97fdec93bf31b6a53233d6b6b Mon Sep 17 00:00:00 2001 From: h-kanazawa Date: Fri, 5 Jul 2019 15:01:31 +0100 Subject: [PATCH] fix(Visualisations): Resolved crash when axesxQuery/axesyQuery is null (#1402) --- ui/src/containers/VisualiseForm/StatementsForm/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/containers/VisualiseForm/StatementsForm/Editor.js b/ui/src/containers/VisualiseForm/StatementsForm/Editor.js index 38ce9184de..ce3fb5eb48 100644 --- a/ui/src/containers/VisualiseForm/StatementsForm/Editor.js +++ b/ui/src/containers/VisualiseForm/StatementsForm/Editor.js @@ -48,7 +48,7 @@ class Editor extends Component { const paths = ['filters', 'axesxQuery', 'axesyQuery']; paths.forEach((path) => { - const query = this.props.model.get(path, new Map()); + const query = this.props.model.get(path) || new Map(); const timezoneUpdated = update$dteTimezone(query, timezone); // Update visualisation.{path} when timezone offset in the filter query is changed