web: topic is rendered incomplete when opened directly

This commit is contained in:
Abdullah Atta
2023-03-22 13:42:36 +05:00
parent a3c24bc666
commit 3c70cccd14

View File

@@ -82,6 +82,7 @@ const routes = {
const notebook = db.notebooks.notebook(notebookId);
const topic = notebook?.topics?.topic(topicId)?._topic;
if (!topic) return false;
nbstore.setSelectedNotebook(notebookId);
notestore.setContext({
type: "topic",
value: { id: notebookId, topic: topicId }