Merge pull request #7553 from strapi/fix/rename-add-comp-to-dz-event

Rename addCompToDz event
This commit is contained in:
ELABBASSI Hicham 2020-08-23 14:40:47 +02:00 committed by GitHub
commit 4ee79e2d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ const EditViewDataManagerProvider = ({
}, [id, slug, isCreatingEntry, isLoadingForPermissions]);
const addComponentToDynamicZone = useCallback((keys, componentUid, shouldCheckErrors = false) => {
emitEvent('addComponentToDynamicZone');
emitEvent('didAddComponentToDynamicZone');
dispatch({
type: 'ADD_COMPONENT_TO_DYNAMIC_ZONE',
keys: keys.split('.'),