@capillarytech/creatives-library 7.10.17 → 7.10.18

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/config/app.js CHANGED
@@ -17,6 +17,7 @@ const config = {
17
17
  },
18
18
  development: {
19
19
  api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
20
+ //api_endpoint: 'http://localhost:2022/arya/api/v1/creatives',
20
21
  campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
21
22
  campaigns_api_org_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/org/campaign',
22
23
  auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.10.17",
4
+ "version": "7.10.18",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -318,7 +318,7 @@ export const SmsTraiEdit = (props) => {
318
318
  };
319
319
 
320
320
  const onTagSelect = (data) => {
321
- if (textAreaId && varMap && updatedSmsEditor) {
321
+ if (textAreaId >= 0 && varMap && updatedSmsEditor) {
322
322
  const arr = [...updatedSmsEditor];
323
323
  const varMapKeys = Object.keys(varMap)?.map((key) => Number(key.slice(8)))?.sort((a, b) => a - b) || [];
324
324
  const loopIndex = varMapKeys[varMapKeys?.indexOf(textAreaId) + 1] || arr.length;
@@ -372,7 +372,7 @@ export const SmsTraiEdit = (props) => {
372
372
  };
373
373
 
374
374
  const textAreaValue = (idValue) => {
375
- if (idValue && updatedSmsEditor) {
375
+ if (idValue >= 0 && updatedSmsEditor) {
376
376
  if (
377
377
  updatedSmsEditor[idValue] &&
378
378
  updatedSmsEditor[idValue] !== SMS_TRAI_VAR