mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix bug in "isPrimitive" function
This commit is contained in:
parent
7e26a5aa50
commit
27f9874cce
@ -835,7 +835,7 @@ export class ElasticDatasource
|
|||||||
if (obj === null || obj === undefined) {
|
if (obj === null || obj === undefined) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (['string', 'number', 'boolean'].some((type) => type === typeof true)) {
|
if (['string', 'number', 'boolean'].some((type) => type === typeof obj)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user