Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions frontend/src/hooks/useZarrMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down