Fix bug in "isPrimitive" function

pull/69575/head
Matias Chomicki 2 years ago
parent 7e26a5aa50
commit 27f9874cce
  1. 2
      public/app/plugins/datasource/elasticsearch/datasource.ts

@ -835,7 +835,7 @@ export class ElasticDatasource
if (obj === null || obj === undefined) {
return true;
}
if (['string', 'number', 'boolean'].some((type) => type === typeof true)) {
if (['string', 'number', 'boolean'].some((type) => type === typeof obj)) {
return true;
}

Loading…
Cancel
Save