@capillarytech/creatives-library 8.0.118 → 8.0.120
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
|
@@ -1129,7 +1129,13 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1129
1129
|
};
|
|
1130
1130
|
|
|
1131
1131
|
const onSuccess = (contentToSubmit) => {
|
|
1132
|
-
this.
|
|
1132
|
+
const channel = this.props.channel || this.props?.schema?.channel?.toUpperCase();
|
|
1133
|
+
if(channel === EMAIL) {
|
|
1134
|
+
const content = this.state.formData?.base?.[this.props.baseLanguage]?.["template-content"] || "";
|
|
1135
|
+
this.handleLiquidTemplateSubmit(content);
|
|
1136
|
+
} else {
|
|
1137
|
+
this.handleLiquidTemplateSubmit(contentToSubmit);
|
|
1138
|
+
}
|
|
1133
1139
|
};
|
|
1134
1140
|
|
|
1135
1141
|
// Call the common validation function
|