fix: query persisted work area geometry
This commit is contained in:
@@ -32,6 +32,7 @@ export function useMapThemeSelectionInsights<TThemeId extends string>(
|
||||
const loadThemeInsights = async (
|
||||
bbox: VectorSelectionBBox,
|
||||
queries: Array<MapThemeQuery<TThemeId>>,
|
||||
areaId?: string,
|
||||
): Promise<Array<MapThemeInsight<TThemeId>>> => {
|
||||
if (!selectedProjectId) {
|
||||
setThemeInsights([])
|
||||
@@ -48,6 +49,7 @@ export function useMapThemeSelectionInsights<TThemeId extends string>(
|
||||
dataset,
|
||||
result: await datasetsApi.selectVectorFeatures(selectedProjectId, dataset.id, {
|
||||
bbox,
|
||||
area_id: areaId,
|
||||
limit: 1000,
|
||||
}),
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user