indicator-ui 0.0.151 → 0.0.152

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/dist/index.js CHANGED
@@ -6781,14 +6781,9 @@ function setDeepValue(dict, value, options) {
6781
6781
  if (i < lastIndexOfKeysWay) {
6782
6782
  if (typeof curKey === "object") {
6783
6783
  const { name, index } = curKey;
6784
- // Если ключ не существует или не является массивом, создаем его
6785
- if (!writePlace[name] || !Array.isArray(writePlace[name])) {
6786
- writePlace[name] = [];
6784
+ if (writePlace[name] && Array.isArray(writePlace[name]) && writePlace[name].length > index) {
6785
+ writePlace = writePlace[name][index];
6787
6786
  }
6788
- while (writePlace[name].length <= index) {
6789
- writePlace[name].push({});
6790
- }
6791
- writePlace = writePlace[name][index];
6792
6787
  }
6793
6788
  else {
6794
6789
  // Если ключ не существует, создаем его