From b65b032d6dc905701d210062a8d852d160fc4691 Mon Sep 17 00:00:00 2001 From: Bala Lakshmi Narayanasami Date: Wed, 20 Jul 2022 21:06:21 +0530 Subject: [PATCH] Fixing test --- src/Explorer/Explorer.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 44dcddb31..36fb92ec9 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -117,8 +117,6 @@ export default class Explorer { this.conversationToken = ko.observable(); - this.generateConversationToken(); - useSelectedNode.subscribe(() => { // Make sure switching tabs restores tabs display this.isTabsContentExpanded(false); @@ -1299,5 +1297,8 @@ export default class Explorer { if (useNotebook.getState().isPhoenixNotebooks) { await this.initNotebooks(userContext.databaseAccount); } + if (userContext.features.enableChatbot) { + this.generateConversationToken(); + } } }