From cf0a7a6bf1dec2ad33334310185e99200b31f5b1 Mon Sep 17 00:00:00 2001 From: "Mae B. Morella" <4561733+mmorella-dev@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:10:52 -0500 Subject: [PATCH] fix: Fixed issue with Simplenote importer where empty notes would not be imported (#2793) --- .../src/Import/SimplenoteConverter/SimplenoteConverter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui-services/src/Import/SimplenoteConverter/SimplenoteConverter.ts b/packages/ui-services/src/Import/SimplenoteConverter/SimplenoteConverter.ts index a6144581c62..98e4d7a9dce 100644 --- a/packages/ui-services/src/Import/SimplenoteConverter/SimplenoteConverter.ts +++ b/packages/ui-services/src/Import/SimplenoteConverter/SimplenoteConverter.ts @@ -12,7 +12,8 @@ type SimplenoteData = { } // eslint-disable-next-line @typescript-eslint/no-explicit-any -const isSimplenoteEntry = (entry: any): boolean => entry.id && entry.content && entry.creationDate && entry.lastModified +const isSimplenoteEntry = (entry: any): boolean => + entry.id && entry.content != undefined && entry.creationDate && entry.lastModified export class SimplenoteConverter implements Converter { constructor() {}