@capillarytech/creatives-library 7.13.19 → 7.13.21
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.
|
@@ -456,8 +456,8 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
456
456
|
|
|
457
457
|
const selectedWeChatAccount = (!_.isEmpty(this.props.Templates.selectedWeChatAccount) ? this.props.Templates.selectedWeChatAccount : this.props.WeChat.selectedWeChatAccount);
|
|
458
458
|
const data = {
|
|
459
|
-
template_id: this.state.editTemplateData.versions.base
|
|
460
|
-
Title: this.state.editTemplateData.versions.base
|
|
459
|
+
template_id: _.get(this.state.editTemplateData.versions.base, 'template_id', ""),
|
|
460
|
+
Title: _.get(this.state.editTemplateData.versions.base, 'Title', ""),
|
|
461
461
|
Tag: [],
|
|
462
462
|
TopColor: "#000000",
|
|
463
463
|
data: {},
|
package/package.json
CHANGED
|
@@ -217,7 +217,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
217
217
|
this.setState({tabKey});
|
|
218
218
|
}
|
|
219
219
|
this.setState({formData: nextProps.formData, currentLangTab}, () => {
|
|
220
|
-
if (nextProps.isNewVersionFlow && !this.state.formData[this.state.currentTab - 1][this.state.formData[this.state.currentTab - 1].activeTab]
|
|
220
|
+
if (nextProps.isNewVersionFlow && !this.state.formData[this.state.currentTab - 1][this.state.formData[this.state.currentTab - 1].activeTab]?.tabKey) {
|
|
221
221
|
this.resetTabKeys(nextProps.formData, nextProps.tabCount, false, true);
|
|
222
222
|
}
|
|
223
223
|
if (type === 'embedded' || ( this.props.schema.channel && this.props.schema.channel.toUpperCase() === 'EMAIL')) {
|