mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Adding check for model and visData; they should never be null (#13854)
This commit is contained in:
parent
6a5c6d3ab1
commit
ad6f53e205
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue