Skip to content

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Sep 12, 2023
1 parent 6464397 commit 38d89fa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -76,7 +76,7 @@ export const EsqlQueryExpression: React.FC<
const setDefaultExpressionValues = async () => {
setRuleProperty('params', currentRuleParams);
setQuery(esqlQuery ?? { esql: '' });
if ('esql' in esqlQuery) {
if (esqlQuery && 'esql' in esqlQuery) {
if (esqlQuery.esql) {
refreshTimeFields(esqlQuery);
}
Expand Down

0 comments on commit 38d89fa

Please sign in to comment.