Skip to content

Commit

Permalink
fix(Visualisations): Resolved crash when axesxQuery/axesyQuery is null (
Browse files Browse the repository at this point in the history
  • Loading branch information
h-kanazawa authored and asahd committed Jul 5, 2019
1 parent c26998f commit 99fbed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/containers/VisualiseForm/StatementsForm/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99fbed7

Please sign in to comment.