@capillarytech/creatives-library 7.5.5 → 7.5.6

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": "7.5.5",
4
+ "version": "7.5.6",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -186,7 +186,7 @@ const Facebook = (props) => {
186
186
  } = props;
187
187
  const {
188
188
  selectedMarketingObjective: fbMarketingObjectiveValue = VALUE_REACH,
189
- } = templateData;
189
+ } = templateData || {};
190
190
  const [isDrawerVisible, setDrawerVisibility] = useState(false);
191
191
  const [selectedMarketingObjective, setMarketingObjective] = useState(socialObjective || fbMarketingObjectiveValue);
192
192
 
@@ -188,7 +188,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
188
188
  case 'facebook':
189
189
  return this.getFacebookComponent();
190
190
  default:
191
- return "";
191
+ break;
192
192
  }
193
193
  }
194
194
  const location = {pathname: `/${channel}`, search: '', query};