From 6644940115bafc51655b7876a623f17aed227abf Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Mon, 3 Mar 2025 12:16:54 +0500 Subject: [PATCH] mobile: fix properties not opening --- .../app/screens/editor/tiptap/use-editor-events.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx index c3d59201c..ddc67a4ea 100644 --- a/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx +++ b/apps/mobile/app/screens/editor/tiptap/use-editor-events.tsx @@ -78,6 +78,7 @@ import { useDragState } from "../../settings/editor/state"; import { EditorMessage, EditorProps, useEditorType } from "./types"; import { useTabStore } from "./use-tab-store"; import { editorState, openInternalLink } from "./utils"; +import { Properties } from "../../../components/properties"; const publishNote = async () => { const user = useUserStore.getState().user; @@ -129,12 +130,9 @@ const showActionsheet = async () => { .getState() .getNoteIdForTab(useTabStore.getState().currentTab!); if (noteId) { + console.log("OPEN NOTE"); const note = await db.notes?.note(noteId); - if (editorState().isFocused || editorState().isFocused) { - editorState().isFocused = true; - } - const { Properties } = require("../../../components/properties/index.js"); - Properties.present(note, ["Dark Mode"]); + Properties.present(note, false); } else { ToastManager.show({ heading: strings.noNoteProperties(),