[WEB-843] fix: chat with us option not woking in command k modal. (#4080)

This commit is contained in:
Prateek Shourya 2024-03-28 15:04:41 +05:30 committed by GitHub
parent 265ce7778a
commit f1530688f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,9 @@ export const CommandPaletteHelpActions: React.FC<Props> = (props) => {
<Command.Item <Command.Item
onSelect={() => { onSelect={() => {
closePalette(); closePalette();
(window as any)?.$crisp.push(["do", "chat:open"]); if (window) {
window.$crisp.push(["do", "chat:show"]);
}
}} }}
className="focus:outline-none" className="focus:outline-none"
> >