Skip to content

Commit c6035ba

Browse files
committed
fix: unset table when not stac-geoparquet
1 parent 9159e22 commit c6035ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hooks/stac-value.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ export default function useStacValue({
7575
enabled: enableStacGeoparquet && !!stacGeoparquetItemId,
7676
});
7777
const value = jsonResult.data || stacGeoparquetResult.data || undefined;
78-
const table = stacGeoparquetTableResult.data || undefined;
78+
const table = enableStacGeoparquet
79+
? stacGeoparquetTableResult.data || undefined
80+
: undefined;
7981
const error =
8082
jsonResult.error ||
8183
stacGeoparquetResult.error ||

0 commit comments

Comments
 (0)