From 5b5fd416cacefeec8bc2a79ebbd38f9378e2d432 Mon Sep 17 00:00:00 2001 From: Charlie Meister Date: Thu, 28 Nov 2024 15:29:40 +0100 Subject: [PATCH] lint --- .../advanced_dataset/create_explorative_modal.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/javascripts/dashboard/advanced_dataset/create_explorative_modal.tsx b/frontend/javascripts/dashboard/advanced_dataset/create_explorative_modal.tsx index c7d1d49266..de387d053d 100644 --- a/frontend/javascripts/dashboard/advanced_dataset/create_explorative_modal.tsx +++ b/frontend/javascripts/dashboard/advanced_dataset/create_explorative_modal.tsx @@ -41,8 +41,8 @@ export function NewVolumeLayerSelection({ const selectedSegmentationLayerIndex = selectedSegmentationLayerName != null ? segmentationLayers.indexOf( - getSegmentationLayerByName(dataset, selectedSegmentationLayerName), - ) + getSegmentationLayerByName(dataset, selectedSegmentationLayerName), + ) : -1; return (
0 && - selectedSegmentationLayerName != null + segmentationLayers.length > 0 && + selectedSegmentationLayerName != null ? getSegmentationLayerByName(dataset, selectedSegmentationLayerName) : null; const fallbackLayerGetParameter =