fixed type errors
This commit is contained in:
parent
0f791a53fb
commit
b4a853936a
1 changed files with 9 additions and 4 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue