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
fix: sanity check before updating progress status
thecodrra311b2bf2e6f
diff --git a/apps/web/src/app-effects.js b/apps/web/src/app-effects.jsindex 7bce3883a..8e7c5b36d 100644--- a/apps/web/src/app-effects.js+++ b/apps/web/src/app-effects.js@@ -87,7 +87,9 @@ function AppEffects({ isMobile, isTablet, setShow, slideToIndex }) {type === "download"? "downloadingAttachments": "uploadingAttachments";- const { status } = store.get().processingStatuses[key];+ const processingStatus = store.get().processingStatuses[key];+ if (!processingStatus) return;+ const { status } = processingStatus;const percent = Math.round((loaded / total) * 100);if (loaded === total) setProcessingStatus(key, status, 100);