Feat v0.4.0 notes surface #22

Merged
xcaliber merged 3 commits from feat/v0.4.0-notes-surface into main 2026-03-29 11:16:38 +00:00
Showing only changes of commit e00acf9ef1 - Show all commits

View File

@@ -308,7 +308,8 @@
} else {
res = await api.get('/notes');
}
var items = (res && res.data) || [];
var items = (res && res.data) || res || [];
if (!Array.isArray(items)) items = [];
// sort: pinned first, then by updated_at desc
items.sort(function(a, b) {
if (a.pinned !== b.pinned) return b.pinned - a.pinned;