inibase 1.5.6 → 1.5.7
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
|
@@ -958,11 +958,13 @@ export default class Inibase {
|
|
|
958
958
|
.map((column) => column.replace(`${field.key}.`, "")),
|
|
959
959
|
});
|
|
960
960
|
const formatLineContent = (lineContent) => Array.isArray(lineContent)
|
|
961
|
-
? lineContent
|
|
961
|
+
? lineContent
|
|
962
|
+
.map((singleContent) => singleContent
|
|
962
963
|
? Array.isArray(singleContent)
|
|
963
964
|
? singleContent.map(formatLineContent)
|
|
964
965
|
: items?.find(({ id }) => singleContent === id)
|
|
965
966
|
: singleContent)
|
|
967
|
+
.filter((item) => item !== undefined)
|
|
966
968
|
: items?.find(({ id }) => lineContent === id);
|
|
967
969
|
for (const [lineNumber, lineContent] of searchableIDs.entries()) {
|
|
968
970
|
if (!lineContent)
|