fix: params undefined (#2397)

This commit is contained in:
katherinehhh 2023-08-04 17:14:29 +08:00 committed by GitHub
parent a9f46e7bac
commit 5ef8fe7848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ export const TableColumnDesigner = (props) => {
fieldSchema['x-component-props'] = field.componentProps; fieldSchema['x-component-props'] = field.componentProps;
const path = field.path?.splice(field.path?.length - 1, 1); const path = field.path?.splice(field.path?.length - 1, 1);
field.form.query(`${path.concat(`*.` + fieldSchema.name)}`).forEach((f) => { field.form.query(`${path.concat(`*.` + fieldSchema.name)}`).forEach((f) => {
// set(f.componentProps, 'service.params.filter', filter); f.componentProps.service = f.componentProps.service || { params: {} };
f.componentProps.service.params.filter = filter; f.componentProps.service.params.filter = filter;
}); });
dn.emit('patch', { dn.emit('patch', {