Skip to content

Commit 1028065

Browse files
committed
revert change
1 parent 9a24939 commit 1028065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ export class PostgresStorageAdapter implements StorageAdapter {
19221922
}
19231923
if (object[fieldName] && schema.fields[fieldName].type === 'Polygon') {
19241924
let coords = object[fieldName];
1925-
coords = coords.substring(2, coords.length - 4).split('),(');
1925+
coords = coords.substr(2, coords.length - 4).split('),(');
19261926
coords = coords.map(point => {
19271927
return [parseFloat(point.split(',')[1]), parseFloat(point.split(',')[0])];
19281928
});

0 commit comments

Comments
 (0)