Skip to content

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

fix: send proper context when opening topic from topic label on notebooks

thecodrr1807afaa0f6a
diff --git a/apps/web/src/views/Notebooks.js b/apps/web/src/views/Notebooks.js
index d8385084b..a1a3a5d0c 100644
--- a/apps/web/src/views/Notebooks.js
+++ b/apps/web/src/views/Notebooks.js
@@ -31,11 +31,9 @@ function Notebooks(props) {
props.navigator.navigate("notes", {
title: notebook.title,
subtitle: topic.title,
- notes: db.notebooks
- .notebook(notebook.id)
- .topics.topic(topic.title).all,
context: {
- notebook: { id: notebook.id, topic: topic.title },
+ type: "topic",
+ value: { id: notebook.id, topic: topic.title },
},
})
}