Skip to content

Commit

Permalink
bump v1.2.0 - minor patch on place resource
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Oct 14, 2021
1 parent 0ab8278 commit 382cb99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/sdk",
"version": "1.1.9",
"version": "1.2.0",
"description": "Fleetbase JS & Node SDK",
"main": "dist/cjs/fleetbase.js",
"module": "dist/esm/fleetbase.js",
Expand Down
4 changes: 2 additions & 2 deletions src/resources/place.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Place extends Resource {
* @var {Integer}
*/
get latitude() {
return this.getAttribute('location', new Point()).coordinates[1];
return this.getAttribute('location', new Point())?.coordinates[1];
}

/**
Expand All @@ -43,7 +43,7 @@ class Place extends Resource {
* @var {Integer}
*/
get longitude() {
return this.getAttribute('location', new Point()).coordinates[0];
return this.getAttribute('location', new Point())?.coordinates[0];
}

/**
Expand Down

0 comments on commit 382cb99

Please sign in to comment.