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: fix deleted items getting imported during backup restore
Abdullah Atta6fd3c7734803
diff --git a/packages/core/src/types.ts b/packages/core/src/types.tsindex a37339852..e70390ee0 100644--- a/packages/core/src/types.ts+++ b/packages/core/src/types.ts@@ -498,11 +498,11 @@ export type BaseTrashItem<TItem extends BaseItem<"note" | "notebook">> =export type TrashItem = BaseTrashItem<Note> | BaseTrashItem<Notebook>;export function isDeleted(item: any): item is DeletedItem {- return !!item.deleted && !item.type;+ return !!item.deleted && item.type !== "trash";}-export function isTrashItem(item: MaybeDeletedItem<Item>): item is TrashItem {- return !isDeleted(item) && item.type === "trash";+export function isTrashItem(item: any): item is TrashItem {+ return item.type === "trash";}export function isGroupHeader(item: any): item is GroupHeader {