From b4a853936aed7b78a4aaa1d740b4f49ee1de6094 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Sun, 5 Apr 2026 00:39:34 +0200
Subject: [PATCH] fixed type errors
---
.../nodes/shared/clickupFormSync.ts | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/components/Automation2FlowEditor/nodes/shared/clickupFormSync.ts b/src/components/Automation2FlowEditor/nodes/shared/clickupFormSync.ts
index 48faf0a..f249656 100644
--- a/src/components/Automation2FlowEditor/nodes/shared/clickupFormSync.ts
+++ b/src/components/Automation2FlowEditor/nodes/shared/clickupFormSync.ts
@@ -228,13 +228,18 @@ export function buildSyncFromClickUpList(args: {
const standardTrigger: TriggerFormFieldRow[] = [
{ name: PAYLOAD_TITLE, label: 'Titel', type: 'text' },
{ name: PAYLOAD_DESCRIPTION, label: 'Beschreibung', type: 'text' },
- ...(statusOpts.length > 0
- ? [{ name: PAYLOAD_STATUS, label: 'Status', type: 'clickup_status', statusOptions: statusOpts }]
- : []),
{ name: PAYLOAD_PRIORITY, label: 'Priorität (1–4)', type: 'number' },
{ name: PAYLOAD_DUE, label: 'Fälligkeit', type: 'date' },
{ name: PAYLOAD_TIME_H, label: 'Zeitschätzung (Stunden)', type: 'number' },
];
+ if (statusOpts.length > 0) {
+ standardTrigger.splice(2, 0, {
+ name: PAYLOAD_STATUS,
+ label: 'Status',
+ type: 'clickup_status',
+ statusOptions: statusOpts,
+ });
+ }
const customInput: FormField[] = [];
const customTrigger: TriggerFormFieldRow[] = [];
@@ -247,7 +252,7 @@ export function buildSyncFromClickUpList(args: {
if (inf) customInput.push(inf);
if (tr) customTrigger.push(tr);
const fid = String((f as ClickUpFieldLike).id ?? '');
- if (fid && inf) {
+ if (fid && inf?.name) {
customRefs[fid] = createRef(formNodeId, ['payload', inf.name]);
}
}