diff --git a/packages/strapi-plugin-content-type-builder/admin/src/components/List/index.js b/packages/strapi-plugin-content-type-builder/admin/src/components/List/index.js index ca8b2c0515..ff80d76f75 100644 --- a/packages/strapi-plugin-content-type-builder/admin/src/components/List/index.js +++ b/packages/strapi-plugin-content-type-builder/admin/src/components/List/index.js @@ -40,10 +40,11 @@ function List({ isSub, dzName, }) { - const { formatMessage } = useGlobalContext(); + const { formatMessage, emitEvent } = useGlobalContext(); const { isInDevelopmentMode, modifiedData } = useDataManager(); const { openModalAddField } = useListView(); const onClickAddField = () => { + emitEvent('hasClickedCTBAddFieldBanner'); const firstComponentIcon = get( modifiedData, ['components', firstLoopComponentUid, 'schema', 'icon'],