mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
refactor: collection manager setting title field (#4419)
This commit is contained in:
parent
f45b66dd98
commit
8fbfd830c9
@ -137,11 +137,11 @@ const CurrentFields = (props) => {
|
||||
method: 'post',
|
||||
data: { titleField: checked ? record.name : 'id' },
|
||||
});
|
||||
message.success(t('Saved successfully'));
|
||||
ctx?.refresh?.();
|
||||
await props.refreshAsync();
|
||||
setLoadingRecord(null);
|
||||
refreshCM();
|
||||
ctx?.refresh?.();
|
||||
message.success(t('Saved successfully'));
|
||||
};
|
||||
|
||||
return isTitleField(record) ? (
|
||||
@ -255,11 +255,11 @@ const InheritFields = (props) => {
|
||||
method: 'post',
|
||||
data: { titleField: checked ? record.name : 'id' },
|
||||
});
|
||||
message.success(t('Saved successfully'));
|
||||
ctx?.refresh?.();
|
||||
await props.refreshAsync();
|
||||
setLoadingRecord(null);
|
||||
refreshCM();
|
||||
ctx?.refresh?.();
|
||||
message.success(t('Saved successfully'));
|
||||
};
|
||||
|
||||
return isTitleField(record) ? (
|
||||
|
Loading…
Reference in New Issue
Block a user