mirror of
https://github.com/strapi/strapi.git
synced 2025-08-03 06:18:37 +00:00
add the event to track when we edit the Collection name in the content-type-builder
This commit is contained in:
parent
7edfefc706
commit
f9123cfd92
@ -510,8 +510,13 @@ const FormModal = () => {
|
||||
} else {
|
||||
// We cannot switch from collection type to single when the modal is making relations other than oneWay or manyWay
|
||||
if (canEditContentType(allDataSchema, modifiedData)) {
|
||||
// allDataSchema.contentType.schema.displayName
|
||||
onCloseModal();
|
||||
|
||||
if (modifiedData?.displayName !== allDataSchema?.contentType?.schema?.displayName) {
|
||||
trackUsage('didEditFieldOnContentTypeInCTB');
|
||||
}
|
||||
|
||||
submitData(modifiedData);
|
||||
} else {
|
||||
toggleNotification({
|
||||
|
Loading…
x
Reference in New Issue
Block a user