fix: getSyncNoteIds id type error

fix: #1006
This commit is contained in:
windingwind 2024-06-24 11:59:35 +08:00
parent 947b242ebe
commit b0a0adb47d

View File

@ -35,7 +35,10 @@ function initSyncList() {
}
async function getSyncNoteIds() {
const keys = addon.data.sync.data?.getKeys();
const keys = addon.data.sync.data
?.getKeys()
.map((key) => Number(key))
.filter((key) => !!key);
if (!keys) {
return [];
}