@capillarytech/creatives-library 2.0.69 → 2.0.70
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.
|
@@ -204,7 +204,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
204
204
|
console.log('Form data changed is ', formData, tabCount, currentTab);
|
|
205
205
|
const newFormData = _.cloneDeep(formData);
|
|
206
206
|
const {templateCta} = this.state;
|
|
207
|
-
if (!_.isEmpty(templateCta)) {
|
|
207
|
+
if (!_.isEmpty(templateCta) && this.state.currentTab === 2) {
|
|
208
208
|
newFormData[this.state.currentTab - 1][`secondary-cta-${this.state.currentTab - 1}-label`] = templateCta.name;
|
|
209
209
|
newFormData[this.state.currentTab - 1][`secondary-cta-${this.state.currentTab - 1}-action`] = templateCta.ctaTemplateDetails[0].buttonText;
|
|
210
210
|
delete newFormData[this.state.currentTab - 1][`secondary-cta-${this.state.currentTab - 1}-action2`];
|