Adding check for model and visData; they should never be null (#13854)

This commit is contained in:
Chris Cowan 2017-09-06 09:50:16 -07:00
parent 6a5c6d3ab1
commit ad6f53e205

View file

@ -58,6 +58,7 @@ class VisEditor extends Component {
};
if (!this.props.vis.isEditorMode()) {
if (!this.props.vis.params || !this.props.visData) return null;
const reversed = this.state.reversed;
return (
<Visualization
@ -73,7 +74,7 @@ class VisEditor extends Component {
const { model } = this.state;
if (model) {
if (model && this.props.visData) {
return (
<div className="vis_editor">
<VisPicker