Skip to content

Commit

Permalink
Change object type control
Browse files Browse the repository at this point in the history
  • Loading branch information
ahincalan authored and ahincalan committed Jan 25, 2019
1 parent e57d68d commit 8e94fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/QueryField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class QueryField {
for (let i = 0; i < fields.length; i++) {
if (typeof fields[i] === 'string') {
this.fields[value].addChild(fields[i]);
} else if (fields[i].constructor.name === 'Object') {
} else if (fields[i] instanceof Object) {
if (!fields[i].name) {
throw "Not found name property";
}
Expand Down

0 comments on commit 8e94fe1

Please sign in to comment.