Add one-click GIS workflow run
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-05 00:11:03 +02:00
parent a9c108a4d4
commit 533135885c
12 changed files with 140 additions and 25 deletions
+3 -1
View File
@@ -27,7 +27,7 @@ export function useMapSelectionDataset({
const deriveMapSelectionDataset = async (bbox: VectorSelectionBBox) => {
if (!selectedProjectId || !selectedDataset || !isVectorDatasetType(selectedDataset.dataset_type)) {
setSelectionDatasetError('Select a vector dataset before saving the area as a dataset.')
return
return null
}
setSelectionDatasetSaving(true)
setSelectionDatasetError(null)
@@ -41,8 +41,10 @@ export function useMapSelectionDataset({
await loadProjectData(selectedProjectId)
await loadDatasetDetails(selectedProjectId, derived)
setMapLayerVisible(true)
return derived
} catch (error) {
setSelectionDatasetError(formatError(error, 'Failed to save area as dataset'))
return null
} finally {
setSelectionDatasetSaving(false)
}