From 9df97ca0de0042ac0b18d34546664edb246164cd Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 9 Feb 2026 16:30:35 +0300 Subject: [PATCH] Avoid defaulting to null where undefined is sufficient --- client/src/components/Form/FormDisplay.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/src/components/Form/FormDisplay.vue b/client/src/components/Form/FormDisplay.vue index dfec8195b62..5d15ecee883 100644 --- a/client/src/components/Form/FormDisplay.vue +++ b/client/src/components/Form/FormDisplay.vue @@ -14,9 +14,9 @@ :on-change-form="onChangeForm" :workflow-building-mode="workflowBuildingMode" :workflow-run="workflowRun" - :active-node-id="activeNodeId ?? undefined" + :active-node-id="activeNodeId" :sync-with-graph="syncWithGraph" - :steps-not-matching-request="stepsNotMatchingRequest ?? undefined" + :steps-not-matching-request="stepsNotMatchingRequest" @stop-flagging="emit('stop-flagging')" @update:active-node-id="updateActiveNode" /> @@ -49,9 +49,9 @@ interface Props { workflowBuildingMode?: boolean; workflowRun?: boolean; allowEmptyValueOnRequiredInput?: boolean; - activeNodeId?: number | null; + activeNodeId?: number; syncWithGraph?: boolean; - stepsNotMatchingRequest?: string[] | null; + stepsNotMatchingRequest?: string[]; } const props = withDefaults(defineProps(), { @@ -70,9 +70,7 @@ const props = withDefaults(defineProps(), { workflowBuildingMode: false, workflowRun: false, allowEmptyValueOnRequiredInput: false, - activeNodeId: null, syncWithGraph: false, - stepsNotMatchingRequest: null, }); const emit = defineEmits<{