Skip to content

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

fix: images not loading in notes (fixes streetwriters/notesnook#822)

thecodrra04411ab7098
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 4706a4606..dbc0a68fd 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -183,8 +183,6 @@ export function Editor(props: EditorProps) {
const editor = useEditorInstance();
useEffect(() => {
- if (!editor.current) return;
-
const event = AppEventManager.subscribe(
AppEvents.UPDATE_ATTACHMENT_PROGRESS,
({ hash, loaded, total, type }: AttachmentProgress) => {