Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed May 28, 2021
1 parent 32713dd commit fc2c3c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function getQueryValidationErrors(
(namedArguments ?? []).forEach((arg) => {
if (arg.name === 'kql' || arg.name === 'lucene') {
const message = getQueryValidationError(
arg as { value: string; name: 'kql' | 'lucene'; text: string },
arg as TinymathNamedArgument & { name: 'kql' | 'lucene' },
indexPattern
);
if (message) {
Expand Down

0 comments on commit fc2c3c9

Please sign in to comment.