Fix bug in "isPrimitive" function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user