@capillarytech/creatives-library 7.17.196 → 7.17.197

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.196",
4
+ "version": "7.17.197",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -1236,11 +1236,11 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
1236
1236
  if(missingTagIndex != -1) { //skip regex tags for mandatory tags also
1237
1237
  response?.missingTags?.splice(missingTagIndex, 1);
1238
1238
  }
1239
- }
1240
- if (validString) {
1241
- response.valid = true;
1242
- } else {
1243
- response.isContentEmpty = true;
1239
+ if (validString) {
1240
+ response.valid = true;
1241
+ } else {
1242
+ response.isContentEmpty = true;
1243
+ }
1244
1244
  }
1245
1245
  while (match !== null ) {
1246
1246
  const tagValue = match[0].substring(this.indexOfEnd(match[0], '{{'), match[0].indexOf('}}'));
@@ -1271,7 +1271,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
1271
1271
  response.valid = false;
1272
1272
  }
1273
1273
 
1274
- if (response.unsupportedTags.length == 0 && response.missingTags.length == 0 ) {
1274
+ if (response?.unsupportedTags?.length == 0 && response?.missingTags?.length == 0 ) {
1275
1275
  response.valid = true;
1276
1276
  }
1277
1277
  }