A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: add null sanity checks in migration
Abdullah Atta20819325fb75
diff --git a/packages/core/migrations.js b/packages/core/migrations.jsindex c9b5dfb34..58957614d 100644--- a/packages/core/migrations.js+++ b/packages/core/migrations.js@@ -63,6 +63,8 @@ export const migrations = {5.5: {},5.6: {notebook: (item) => {+ if (!item.topics) return item;+item.topics = item.topics.map((topic) => {delete topic.notes;return topic;@@ -70,7 +72,11 @@ export const migrations = {return item;},settings: async (item, db) => {+ if (!item.pins) return item;+for (const pin of item.pins) {+ if (!pin.data) continue;+await db.shortcuts.add({item: {type: pin.type,