mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:36:52 +00:00
fix: allow table column title to be reset to default (#5439)
This commit is contained in:
parent
88b8782d11
commit
737aa11fc5
@ -66,16 +66,15 @@ export const tableColumnSettings = new SchemaSettings({
|
||||
},
|
||||
} as ISchema,
|
||||
onSubmit: ({ title }) => {
|
||||
if (title) {
|
||||
field.title = title;
|
||||
columnSchema.title = title;
|
||||
dn.emit('patch', {
|
||||
schema: {
|
||||
'x-uid': columnSchema['x-uid'],
|
||||
title: columnSchema.title,
|
||||
},
|
||||
});
|
||||
}
|
||||
field.title = title;
|
||||
columnSchema.title = title;
|
||||
dn.emit('patch', {
|
||||
schema: {
|
||||
'x-uid': columnSchema['x-uid'],
|
||||
title: columnSchema.title,
|
||||
},
|
||||
});
|
||||
|
||||
dn.refresh();
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user