add the event to track when we edit the Collection name in the content-type-builder

This commit is contained in:
Simone Taeggi 2022-11-18 12:38:05 +01:00
parent 7edfefc706
commit f9123cfd92

View File

@ -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({