stable
This commit is contained in:
parent
0f1cb2fe6c
commit
129c07183a
51 changed files with 5711 additions and 1122 deletions
|
|
@ -571,7 +571,7 @@
|
|||
if (JSON_EXTRA_ITEM_TYPE_IDS.has(typeId)) {
|
||||
try {
|
||||
const parsed = JSON.parse(reader.str() || "[]");
|
||||
return Array.isArray(parsed) ? parsed : [];
|
||||
return (Array.isArray(parsed) || (parsed && typeof parsed === "object")) ? parsed : [];
|
||||
} catch (_) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue