mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Fix non-integer warning when purging ids from sourceList.persist
This commit is contained in:
parent
d83d70eb5c
commit
49506b6d94
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue