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
monograph: only check for success if an object in kv
Abdullah Attad6ed99282dfb
diff --git a/apps/monograph/app/utils/storage/kv.ts b/apps/monograph/app/utils/storage/kv.tsindex 946f2f050..9342427a3 100644--- a/apps/monograph/app/utils/storage/kv.ts+++ b/apps/monograph/app/utils/storage/kv.ts@@ -39,7 +39,7 @@ export async function read<T>(key: string, fallback: T): Promise<T> {const response = await WorkersKV.readKey({key});- if (!response.success) {+ if (typeof response === "object" && !response.success) {console.error("failed:", response.errors);return fallback;}