From e7c56ebb7711a60119bd3d7c6da810cb590698a9 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 9 Mar 2023 13:23:41 +0100 Subject: [PATCH] use store to determine mapped over state Co-authored-by: mvdbeek --- .../src/components/Workflow/Editor/composables/useTerminal.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Editor/composables/useTerminal.ts b/client/src/components/Workflow/Editor/composables/useTerminal.ts index f19babdc1694..7fada01f8ec4 100644 --- a/client/src/components/Workflow/Editor/composables/useTerminal.ts +++ b/client/src/components/Workflow/Editor/composables/useTerminal.ts @@ -2,6 +2,7 @@ import type { DatatypesMapperModel } from "@/components/Datatypes/model"; import { terminalFactory } from "@/components/Workflow/Editor/modules/terminals"; import type { Step, TerminalSource } from "@/stores/workflowStepStore"; import { ref, watch, type Ref, computed } from "vue"; +import { useWorkflowStepStore } from "@/stores/workflowStepStore"; export function useTerminal( stepId: Ref, @@ -9,7 +10,8 @@ export function useTerminal( datatypesMapper: Ref ) { const terminal: Ref | null> = ref(null); - const isMappedOver = computed(() => terminal.value?.isMappedOver() ?? false); + const stepStore = useWorkflowStepStore(); + const isMappedOver = computed(() => stepStore.stepMapOver[stepId.value]?.isCollection ?? false); watch( [stepId, terminalSource, datatypesMapper],