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
web: only subscribe to note title if its generated
Abdullah Atta765949cc40ae
diff --git a/apps/web/src/components/editor/title-box.tsx b/apps/web/src/components/editor/title-box.tsxindex 968ce6a4d..c4b8793f5 100644--- a/apps/web/src/components/editor/title-box.tsx+++ b/apps/web/src/components/editor/title-box.tsx@@ -39,9 +39,10 @@ function TitleBox(props: TitleBoxProps) {const inputRef = useRef<HTMLTextAreaElement>(null);const pendingChanges = useRef(false);const sessionType = useEditorStore((store) => store.getSession(id)?.type);- const sessionTitle = useEditorStore(- (store) => store.getSession(id, ["default"])?.note.title- );+ const sessionTitle = useEditorStore((store) => {+ const session = store.getSession(id, ["default"]);+ return session?.note.isGeneratedTitle ? session.note.title : null;+ });const { editorConfig } = useEditorConfig();const dateFormat = useSettingsStore((store) => store.dateFormat);const timeFormat = useSettingsStore((store) => store.timeFormat);