Fix model queries values not matching placeholder count
This commit is contained in:
parent
31f974c0a6
commit
37ed42b37d
@ -272,7 +272,9 @@ class FieldValue {
|
||||
}
|
||||
|
||||
public get variables(): any[] {
|
||||
return this.value instanceof ModelQuery ? this.value.variables : [this.value];
|
||||
if (this.value instanceof ModelQuery) return this.value.variables;
|
||||
if (this.raw || this.value === null) return [];
|
||||
return [this.value];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user