Skip to content

Commit 915ae95

Browse files
committed
fix: change how sites are parsed from JSON to fix boundary loading
1 parent 9a19eab commit 915ae95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/admin/ListSites.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const parseSitesFromJSON = (jsonString: string): Site[] => {
3131
address: site.address,
3232
cell_id: site.cell_id,
3333
color: site.color,
34-
boundary: site.boundary?.map((point: any) => [point.lat, point.lng] as [number, number]) ?? undefined,
34+
boundary: site.boundary?.map((point: any) => [point[0], point[1]] as [number, number]) ?? undefined,
3535
};
3636
});
3737

0 commit comments

Comments
 (0)