From fcb16f628bec2ceb401289ead42d54a41447c0f3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 22 Mar 2022 23:58:58 -0400 Subject: [PATCH] Fix "path.startsWith is not a function" sync error on Windows `OS.Path.join()` on Windows throws if an integer is passed. Seems like this would happen on another computer whenever an image annotation is deleted in a group? --- chrome/content/zotero/xpcom/annotations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/annotations.js b/chrome/content/zotero/xpcom/annotations.js index 07654ffcf6..329a81471b 100644 --- a/chrome/content/zotero/xpcom/annotations.js +++ b/chrome/content/zotero/xpcom/annotations.js @@ -103,7 +103,7 @@ Zotero.Annotations = new function () { parts.push('library'); } else if (library.libraryType == 'group') { - parts.push('groups', library.groupID); + parts.push('groups', library.groupID + ''); } else { throw new Error(`Unexpected library type '${library.libraryType}'`);