Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: crash if UPDATE_ATTACHMENT_PROGRESS is called before attachmentsLoading event

thecodrr5a99f4deb97c
diff --git a/apps/web/src/app-effects.js b/apps/web/src/app-effects.js
index a4737086f..24d051997 100644
--- a/apps/web/src/app-effects.js
+++ b/apps/web/src/app-effects.js
@@ -84,6 +84,7 @@ function AppEffects({ isMobile, isTablet, setShow, slideToIndex }) {
if (!key) return;
const processingStatus = store.get().processingStatuses[key];
+ if (!processingStatus) return;
const { status } = processingStatus;
const percent = Math.round((loaded / total) * 100);