Avoid defaulting to null where undefined is sufficient

This commit is contained in:
guerler
2026-02-12 11:49:57 +03:00
parent e45683ee14
commit 9df97ca0de
+4 -6
View File
@@ -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" />
</template>
@@ -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<Props>(), {
@@ -70,9 +70,7 @@ const props = withDefaults(defineProps<Props>(), {
workflowBuildingMode: false,
workflowRun: false,
allowEmptyValueOnRequiredInput: false,
activeNodeId: null,
syncWithGraph: false,
stepsNotMatchingRequest: null,
});
const emit = defineEmits<{