mirror of
https://github.com/vale981/grapher
synced 2025-03-05 17:41:41 -05:00
fix issue adding fields from $filters - added spaces
This commit is contained in:
parent
df6494dc44
commit
96a8d05955
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ export default class CollectionNode {
|
||||||
// special handling for the $meta filter and conditional operators
|
// special handling for the $meta filter and conditional operators
|
||||||
if (!_.contains(['$or', '$nor', '$not', '$and', '$meta'], field)) {
|
if (!_.contains(['$or', '$nor', '$not', '$and', '$meta'], field)) {
|
||||||
// if the field or the parent of the field already exists, don't add it
|
// if the field or the parent of the field already exists, don't add it
|
||||||
if(!_.has(options.fields,field.split('.')[0])){
|
if (!_.has(options.fields, field.split('.')[0])){
|
||||||
hasAddedAnyField = true;
|
hasAddedAnyField = true;
|
||||||
options.fields[field] = 1;
|
options.fields[field] = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue