@capillarytech/creatives-library 6.13.5 → 6.13.7
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
|
@@ -196,7 +196,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
196
196
|
if (this.props.location.query.type === 'embedded') {
|
|
197
197
|
this.props.actions.resetAccount();
|
|
198
198
|
}
|
|
199
|
-
if ((['line', VIBER_CHANNEL, 'sms', 'email', 'ebill'].includes((this.state.channel || '').toLowerCase())) || ((['wechat','mobilepush'].includes(this.state.channel.toLowerCase()) && !isEmpty(this.props.Templates.selectedWeChatAccount))) {
|
|
199
|
+
if ((['line', VIBER_CHANNEL, 'sms', 'email', 'ebill'].includes((this.state.channel || '').toLowerCase())) || ((['wechat', 'mobilepush'].includes(this.state.channel.toLowerCase()) && !isEmpty(this.props.Templates.selectedWeChatAccount)))) {
|
|
200
200
|
const queryParams = {
|
|
201
201
|
// name: this.state.searchText,
|
|
202
202
|
// sortBy: this.state.sortBy,
|
|
@@ -106,7 +106,7 @@ const Viber = (props) => {
|
|
|
106
106
|
|
|
107
107
|
useEffect(() => {
|
|
108
108
|
const { id } = paramObj;
|
|
109
|
-
if (id && !templateData) {
|
|
109
|
+
if (id && !get(templateData, `versions.base.content`)) {
|
|
110
110
|
updateEditLoading(true);
|
|
111
111
|
actions.getTemplateDetails(id, updateEditLoading);
|
|
112
112
|
checkEditFlow(true);
|