commit 49506b6d94318652704fa7a4234e698b6cae792e parent d83d70eb5ce2c948220f9e6e292795a051552403 Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 18 Sep 2017 17:02:25 -0400 Fix non-integer warning when purging ids from sourceList.persist Diffstat:
| M | chrome/content/zotero/xpcom/collectionTreeView.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -1465,7 +1465,7 @@ Zotero.CollectionTreeView.prototype._saveOpenStates = Zotero.Promise.coroutine(f for (var id in state) { var m = id.match(/^C([0-9]+)$/); if (m) { - if (!(yield Zotero.Collections.getAsync(m[1]))) { + if (!(yield Zotero.Collections.getAsync(parseInt(m[1])))) { delete state[id]; } continue; @@ -1473,7 +1473,7 @@ Zotero.CollectionTreeView.prototype._saveOpenStates = Zotero.Promise.coroutine(f var m = id.match(/^G([0-9]+)$/); if (m) { - if (!Zotero.Groups.get(m[1])) { + if (!Zotero.Groups.get(parseInt(m[1]))) { delete state[id]; } continue;