Skip to content

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

feat: open General topic directly if no other topic

thecodrra1b0be1e53ab
diff --git a/apps/web/src/common/list-profiles.js b/apps/web/src/common/list-profiles.js
index 346237fad..36602b606 100644
--- a/apps/web/src/common/list-profiles.js
+++ b/apps/web/src/common/list-profiles.js
@@ -30,7 +30,11 @@ const NotebooksProfile = createProfile(
index={index}
item={item}
onClick={() => {
- navigate(`/notebooks/${item.id}`);
+ if (item.topics.length === 1) {
+ navigate(`/notebooks/${item.id}/${item.topics[0].id}`);
+ } else {
+ navigate(`/notebooks/${item.id}`);
+ }
}}
onTopicClick={(notebook, topic) =>
navigate(`/notebooks/${notebook.id}/${topic}`)