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,
});
}}
allowNew={true}
allowNew={false}
autoPopupWidth={true}
focusOpen={true}
mode={"multi"}

View File

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