This commit is contained in:
Rizky 2024-06-26 22:13:09 -07:00
parent c742e27887
commit 7dbb096fc0
2 changed files with 7 additions and 3 deletions

View File

@ -127,7 +127,7 @@ export const TypeDropdown: FC<{
selected: values, selected: values,
}); });
}} }}
allowNew={true} allowNew={false}
autoPopupWidth={true} autoPopupWidth={true}
focusOpen={true} focusOpen={true}
mode={"multi"} mode={"multi"}

View File

@ -143,14 +143,18 @@ async ({ form, error, fm }: IForm) => {
) => { ) => {
if (list.length) { if (list.length) {
const data = current.data.map((e) => { const data = current.data.map((e) => {
return { const record = {
...e, ...e,
m_role: { ${table}: {
connect: { connect: {
${pk}: form.${pk}, ${pk}: form.${pk},
}, },
}, },
}; };
call_prasi_events("form", "before_save", [fm, record]);
return record;
}); });
await db._batch.upsert({ await db._batch.upsert({
table: current.table, table: current.table,