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

This commit is contained in:
thecodrr
2020-04-21 11:54:12 +05:00
parent b40d1a4440
commit 1807afaa0f

View File

@@ -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 },
},
})
}