@capillarytech/creatives-library 8.0.345-alpha.3 → 8.0.345-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.345-alpha.3",
4
+ "version": "8.0.345-alpha.5",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -37,7 +37,6 @@ const useEmailWrapper = ({
37
37
  // Props for Email component
38
38
  setIsLoadingContent,
39
39
  isGetFormData,
40
- templateData,
41
40
  getFormdata,
42
41
  type,
43
42
  isFullMode,
@@ -66,7 +65,6 @@ const useEmailWrapper = ({
66
65
  location,
67
66
  emailActions,
68
67
  Email,
69
- templateData,
70
68
  params,
71
69
  isEditEmail = true,
72
70
  }) => {
@@ -105,7 +103,9 @@ const useEmailWrapper = ({
105
103
  }, [onEnterTemplateName, onRemoveTemplateName]);
106
104
 
107
105
  useEffect(() => () => {
108
- emailActions.clearStoreValues();
106
+ return () =>{
107
+ emailActions.clearStoreValues();
108
+ }
109
109
  }, []);
110
110
 
111
111
  // Check BEE enabled status from API response
@@ -728,6 +728,7 @@ const useEmailWrapper = ({
728
728
  location: routeParams,
729
729
  route: { name: 'email' },
730
730
  params: emailParams,
731
+ templateData,
731
732
  isGetFormData,
732
733
  getFormdata,
733
734
  getFormSubscriptionData: getFormdata,