@indigina/ui-kit 1.1.358 → 1.1.359

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.
@@ -6345,11 +6345,6 @@ const findMatches = (obj, translatePrefix, excludedKeys = [], search, translateV
6345
6345
  if (!search) {
6346
6346
  return [];
6347
6347
  }
6348
- const handleArray = (arr, path) => {
6349
- arr.forEach((item, index) => {
6350
- traverse(item, `${path}[${index}]`);
6351
- });
6352
- };
6353
6348
  const handleObject = (obj, path) => {
6354
6349
  for (const [key, value,] of Object.entries(obj)) {
6355
6350
  const currentPath = path ? `${path}.${key}` : key;
@@ -6368,8 +6363,8 @@ const findMatches = (obj, translatePrefix, excludedKeys = [], search, translateV
6368
6363
  }
6369
6364
  };
6370
6365
  const traverse = (current, path) => {
6371
- if (current && typeof current === 'object') {
6372
- Array.isArray(current) ? handleArray(current, path) : handleObject(current, path);
6366
+ if (current && typeof current === 'object' && !Array.isArray(current)) {
6367
+ handleObject(current, path);
6373
6368
  }
6374
6369
  };
6375
6370
  traverse(obj, '');