refactor: collection manager setting title field (#4419)

This commit is contained in:
Katherine 2024-05-21 10:30:36 +08:00 committed by GitHub
parent f45b66dd98
commit 8fbfd830c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) ? (