From 6b79b5849ef44fd9bc68c9d0ba0f2e76db45c27b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 29 Dec 2023 05:14:42 -0500 Subject: [PATCH] Local API: numChildren=0, not false (#4270) --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 70e57d2d17..78da0c810d 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -5501,7 +5501,7 @@ Zotero.Item.prototype.toResponseJSON = function (options = {}) { json.meta.numChildren = this.numChildren(); } else { - json.meta.numChildren = false; + json.meta.numChildren = 0; } if (this.isImportedAttachment()) {