fix
This commit is contained in:
parent
c742e27887
commit
7dbb096fc0
|
|
@ -127,7 +127,7 @@ export const TypeDropdown: FC<{
|
|||
selected: values,
|
||||
});
|
||||
}}
|
||||
allowNew={true}
|
||||
allowNew={false}
|
||||
autoPopupWidth={true}
|
||||
focusOpen={true}
|
||||
mode={"multi"}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue