inibase 1.1.15 → 1.1.17
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 +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -900,7 +900,9 @@ export default class Inibase {
|
|
|
900
900
|
if (items) {
|
|
901
901
|
for (const [lineNumber, lineContent] of searchableIDs.entries()) {
|
|
902
902
|
const foundedItem = isArrayField
|
|
903
|
-
?
|
|
903
|
+
? Utils.isArrayOfArrays(lineContent)
|
|
904
|
+
? lineContent.map((item) => items.filter(({ id }) => item.includes(id)))
|
|
905
|
+
: lineContent.flatMap((item) => items.find(({ id }) => item === id))
|
|
904
906
|
: items.find(({ id }) => id === lineContent);
|
|
905
907
|
if (foundedItem)
|
|
906
908
|
RETURN[lineNumber][field.key] = foundedItem;
|