From 0b827f36d51e0198027860ae93ce2999dfe625c7 Mon Sep 17 00:00:00 2001 From: allison-truhlar Date: Thu, 18 Dec 2025 10:20:21 -0500 Subject: [PATCH] fix: set layer type to 'image' for zarrs without thumbnail --- frontend/src/hooks/useZarrMetadata.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/hooks/useZarrMetadata.ts b/frontend/src/hooks/useZarrMetadata.ts index 3db9f4a4..3df57288 100644 --- a/frontend/src/hooks/useZarrMetadata.ts +++ b/frontend/src/hooks/useZarrMetadata.ts @@ -55,10 +55,8 @@ export default function useZarrMetadata() { useEffect(() => { if (!thumbnailSrc || disableHeuristicalLayerTypeDetection) { - // Set default layer type if heuristics are disabled - if (disableHeuristicalLayerTypeDetection) { - setLayerType('image'); - } + // Set layer type to 'image' if no thumbnail or detection disabled + setLayerType('image'); return; }