diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 7719836..a57ea20 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -23,7 +23,10 @@ const Map = (props: MapProps) => { const { t } = useTranslation(); return ( -
+
{
); } - return ( { onChange={setSelectedFiles} accept={role?.format ? ACCEPTED_MIMETYPES[role.format] : undefined} > - {JSON.stringify(ACCEPTED_MIMETYPES[role?.format])} {children} ); diff --git a/src/features/dataset/StackLayerPriorities.tsx b/src/features/dataset/StackLayerPriorities.tsx index 92434b2..7f7c0ba 100644 --- a/src/features/dataset/StackLayerPriorities.tsx +++ b/src/features/dataset/StackLayerPriorities.tsx @@ -32,7 +32,12 @@ const StackLayerPriorities = (props: StackLayerPrioritiesProps) => { const disabled = useMemo( () => - !layers.every((layer) => layer.status === AccessmodFilesetStatus.Valid), + !layers.every((layer) => + [ + AccessmodFilesetStatus.Valid, + AccessmodFilesetStatus.ToAcquire, + ].includes(layer.status) + ), [layers] );