Skip to content

Commit b0fa5b0

Browse files
committed
Removed old auto-opening code
1 parent c08a0d5 commit b0fa5b0

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -546,20 +546,7 @@ function SelectorDivider() {
546546
}
547547

548548
function HelpAndAI() {
549-
const { isKapaEnabled, openKapa, isKapaOpen } = useKapaWidget();
550-
const location = useLocation();
551-
552-
// If the location searchParams contains `aiHelp="A question to ask AI"` we should get the value, clear it from the searchParams and open Kapa with the question
553-
const searchParams = new URLSearchParams(location.search);
554-
555-
useEffect(() => {
556-
const aiHelp = searchParams.get("aiHelp");
557-
if (aiHelp) {
558-
searchParams.delete("aiHelp");
559-
console.log("aiHelp", aiHelp);
560-
openKapa(aiHelp);
561-
}
562-
}, [location.search]);
549+
const { isKapaEnabled, isKapaOpen, openKapa } = useKapaWidget();
563550

564551
return (
565552
<>

0 commit comments

Comments
 (0)