From f1530688f8b398e9a599c58c7b197d12f345c055 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Thu, 28 Mar 2024 15:04:41 +0530 Subject: [PATCH] [WEB-843] fix: `chat with us` option not woking in command k modal. (#4080) --- web/components/command-palette/actions/help-actions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/command-palette/actions/help-actions.tsx b/web/components/command-palette/actions/help-actions.tsx index 10c7675d3..539ec00aa 100644 --- a/web/components/command-palette/actions/help-actions.tsx +++ b/web/components/command-palette/actions/help-actions.tsx @@ -69,7 +69,9 @@ export const CommandPaletteHelpActions: React.FC = (props) => { { closePalette(); - (window as any)?.$crisp.push(["do", "chat:open"]); + if (window) { + window.$crisp.push(["do", "chat:show"]); + } }} className="focus:outline-none" >