Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Nov 21, 2023
1 parent df35a2c commit 70c98e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/visualizations/public/wizard/new_vis_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class NewVisModal extends React.Component<TypeSelectionProps, TypeSelectionState
};

private onVisTypeSelected = (visType: BaseVisType | VisTypeAlias) => {
if (!('alias' in visType) && visType.requiresSearch && visType.options.showIndexSelection) {
if ('visConfig' in visType && visType.requiresSearch && visType.options.showIndexSelection) {
this.setState({
showSearchVisModal: true,
visType,
Expand Down

0 comments on commit 70c98e1

Please sign in to comment.