mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-03 12:52:39 +02:00
use sessionStorage for quickAskMode to survive route changes
This commit is contained in:
parent
f9a6e648cf
commit
151d6a853e
2 changed files with 3 additions and 4 deletions
|
|
@ -35,8 +35,9 @@ export default function QuickAskPage() {
|
|||
}, []);
|
||||
|
||||
const navigateToChat = (prompt: string, mode: string) => {
|
||||
sessionStorage.setItem("quickAskMode", mode);
|
||||
const encoded = encodeURIComponent(prompt);
|
||||
window.location.href = `/dashboard?quickAskPrompt=${encoded}&quickAskMode=${mode}`;
|
||||
window.location.href = `/dashboard?quickAskPrompt=${encoded}`;
|
||||
};
|
||||
|
||||
const handleAction = (actionId: string) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue