@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
|
@@ -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
|
-
|
|
191
|
+
break;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
const location = {pathname: `/${channel}`, search: '', query};
|