From b607e3c034fe5c99d0ca4d84d2ee6efbbeb9d850 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 16 May 2024 01:00:21 -0700 Subject: [PATCH] Beam: if auto-start, give the chance to change merge model --- src/modules/beam/gather/BeamGatherPane.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/beam/gather/BeamGatherPane.tsx b/src/modules/beam/gather/BeamGatherPane.tsx index ff591b196..2b82361fa 100644 --- a/src/modules/beam/gather/BeamGatherPane.tsx +++ b/src/modules/beam/gather/BeamGatherPane.tsx @@ -13,6 +13,7 @@ import { BeamStoreApi, useBeamStore } from '../store-beam.hooks'; import { FFactoryId, FUSION_FACTORIES } from './instructions/beam.gather.factories'; import { GATHER_COLOR } from '../beam.config'; import { beamPaneSx } from '../BeamCard'; +import { useModuleBeamStore } from '../store-module-beam'; const gatherPaneClasses = { @@ -79,8 +80,9 @@ export function BeamGatherPane(props: { setCurrentFactoryId: state.setCurrentFactoryId, setCurrentGatherLlmId: state.setCurrentGatherLlmId, }))); + const gatherAutoStartAfterScatter = useModuleBeamStore(state => state.gatherAutoStartAfterScatter); const [_, gatherLlmComponent/*, gatherLlmIcon*/] = useLLMSelect( - currentGatherLlmId, setCurrentGatherLlmId, props.isMobile ? '' : 'Merge Model', true, !props.canGather, + currentGatherLlmId, setCurrentGatherLlmId, props.isMobile ? '' : 'Merge Model', true, !props.canGather && !gatherAutoStartAfterScatter, ); // derived state