From 3c70cccd1443d0f66f3ff0d1f16526cdbd58e1b3 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 22 Mar 2023 13:42:36 +0500 Subject: [PATCH] web: topic is rendered incomplete when opened directly --- apps/web/src/navigation/routes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/navigation/routes.js b/apps/web/src/navigation/routes.js index 7bc738637..7c50dbcf8 100644 --- a/apps/web/src/navigation/routes.js +++ b/apps/web/src/navigation/routes.js @@ -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 }