fixed type errors

This commit is contained in:
ValueOn AG 2026-04-05 00:39:34 +02:00
parent 0f791a53fb
commit b4a853936a

View file

@ -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 (14)', 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]);
}
}