3
0
Преглед на файлове

Fix for array keys not working.

Herby Vojčík преди 5 години
родител
ревизия
937fc85ba7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -30,7 +30,7 @@ const copyWith = (key, value) =>
 function parseKeysInto (keyDescriptions, keys) {
     keyDescriptions.forEach(each => {
         if (typeof each === 'number' || isMapKey(each)) keys.push(each);
-        else if (Array.isArray(each)) fillKeys(each);
+        else if (Array.isArray(each)) parseKeysInto(each, keys);
         else keys.push(...each.toString().split('.'));
     });
     return keys;