mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-25 08:53:50 +00:00
migrate: formly live formly forms
This commit is contained in:
parent
fcc6865340
commit
83d62ce8da
1 changed files with 13 additions and 14 deletions
|
|
@ -30,20 +30,19 @@ export const adjustToLiveFormlyForm = (
|
|||
};
|
||||
}
|
||||
|
||||
// TODO check if not working
|
||||
// if (
|
||||
// item.type === 'repeat' &&
|
||||
// item?.fieldArray?.fieldGroup &&
|
||||
// isArray(item.fieldArray.fieldGroup)
|
||||
// ) {
|
||||
// return {
|
||||
// ...item,
|
||||
// fieldArray: {
|
||||
// ...item.fieldArray,
|
||||
// fieldGroup: adjustToLiveFormlyForm(item?.fieldArray?.fieldGroup),
|
||||
// },
|
||||
// };
|
||||
// }
|
||||
if (
|
||||
item.type === 'repeat' &&
|
||||
(item?.fieldArray as any)?.fieldGroup &&
|
||||
isArray((item.fieldArray as any).fieldGroup)
|
||||
) {
|
||||
return {
|
||||
...item,
|
||||
fieldArray: {
|
||||
...item.fieldArray,
|
||||
fieldGroup: adjustToLiveFormlyForm((item?.fieldArray as any)?.fieldGroup),
|
||||
},
|
||||
};
|
||||
}
|
||||
return item;
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue