Skip to content

Commit

Permalink
Update vis_editor.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Apr 7, 2021
1 parent 32b64bc commit 809841d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,10 @@ export class VisEditor extends Component<TimeseriesEditorProps, TimeseriesEditor
const indexPatterns = extractIndexPatternValues(this.props.vis.params, index);
const visFields = await fetchFields(indexPatterns);

this.setState((state) => ({
this.setState({
defaultIndex: index,
model: {
...state.model,
},
visFields,
}));
});
});

this.props.eventEmitter.on('updateEditor', this.updateModel);
Expand Down

0 comments on commit 809841d

Please sign in to comment.