Skip to content

Commit

Permalink
Fix optional match processing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mladen Korunoski committed Jun 26, 2019
1 parent 8ce2722 commit 078e68b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/src/angular-neo4j.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export class AngularNeo4jService {
}

private processRecord(record) {
if (!record) {
return null;
}

if (record.constructor.name === 'Integer') {
return record.toNumber();
}
Expand Down

0 comments on commit 078e68b

Please sign in to comment.