Skip to content

Commit

Permalink
add check for title
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Nov 23, 2022
1 parent 0040ea4 commit e142aad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class QueryStringInputUI extends PureComponent<QueryStringInputPr
QueryStringInputProps['indexPatterns'][number],
DataView
>(this.props.indexPatterns || [], (indexPattern): indexPattern is DataView => {
return indexPattern.hasOwnProperty('fields');
return indexPattern.hasOwnProperty('fields') && indexPattern.hasOwnProperty('title');
});
const idOrTitlePatterns = stringPatterns.map((sp) =>
typeof sp === 'string' ? { type: 'title', value: sp } : sp
Expand Down

0 comments on commit e142aad

Please sign in to comment.