From d14c3d295169ca1a37743227001220957bc54bf8 Mon Sep 17 00:00:00 2001 From: Nikhil Thorat Date: Fri, 16 Feb 2024 10:10:26 -0500 Subject: [PATCH] save --- .../src/lib/components/ComputeClusterModal.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/blueprint/src/lib/components/ComputeClusterModal.svelte b/web/blueprint/src/lib/components/ComputeClusterModal.svelte index 1be5de9d..604ac1b6 100644 --- a/web/blueprint/src/lib/components/ComputeClusterModal.svelte +++ b/web/blueprint/src/lib/components/ComputeClusterModal.svelte @@ -68,6 +68,14 @@ formatSelectors = $formatSelectorsQuery.data; } } + $: { + if (selectedFormatSelector != null && selectedFormatSelector != 'none') { + // Choose a reasonable default output column. + outputColumn = `${selectedFormatSelector}__clusters`; + } else if (selectedFormatSelector === 'none') { + outputColumn = undefined; + } + } function close() { store.set(null);