mirror of
https://github.com/strapi/strapi.git
synced 2025-08-05 23:40:04 +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 {
|
} else {
|
||||||
// We cannot switch from collection type to single when the modal is making relations other than oneWay or manyWay
|
// We cannot switch from collection type to single when the modal is making relations other than oneWay or manyWay
|
||||||
if (canEditContentType(allDataSchema, modifiedData)) {
|
if (canEditContentType(allDataSchema, modifiedData)) {
|
||||||
|
// allDataSchema.contentType.schema.displayName
|
||||||
onCloseModal();
|
onCloseModal();
|
||||||
|
|
||||||
|
if (modifiedData?.displayName !== allDataSchema?.contentType?.schema?.displayName) {
|
||||||
|
trackUsage('didEditFieldOnContentTypeInCTB');
|
||||||
|
}
|
||||||
|
|
||||||
submitData(modifiedData);
|
submitData(modifiedData);
|
||||||
} else {
|
} else {
|
||||||
toggleNotification({
|
toggleNotification({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user