mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +02:00
chore: biome lint
This commit is contained in:
parent
b4b53b6625
commit
b5a6321eb4
8 changed files with 79 additions and 46 deletions
|
|
@ -332,7 +332,7 @@ export default function EditorPage() {
|
|||
// Clear global unsaved state
|
||||
setGlobalHasUnsavedChanges(false);
|
||||
setHasUnsavedChanges(false);
|
||||
|
||||
|
||||
// If there's a pending navigation (from sidebar), use that; otherwise go back to researcher
|
||||
if (pendingNavigation) {
|
||||
router.push(pendingNavigation);
|
||||
|
|
@ -470,9 +470,12 @@ export default function EditorPage() {
|
|||
</div>
|
||||
|
||||
{/* Unsaved Changes Dialog */}
|
||||
<AlertDialog open={showUnsavedDialog} onOpenChange={(open) => {
|
||||
if (!open) handleCancelLeave();
|
||||
}}>
|
||||
<AlertDialog
|
||||
open={showUnsavedDialog}
|
||||
onOpenChange={(open) => {
|
||||
if (!open) handleCancelLeave();
|
||||
}}
|
||||
>
|
||||
<AlertDialogContent>
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogTitle>Unsaved Changes</AlertDialogTitle>
|
||||
|
|
|
|||
|
|
@ -135,9 +135,9 @@ export default function ResearcherPage() {
|
|||
chatRequestOptions?: { data?: any }
|
||||
) => {
|
||||
// Use the first message content as the chat title (truncated to 100 chars)
|
||||
const messageContent = typeof message.content === 'string' ? message.content : '';
|
||||
const messageContent = typeof message.content === "string" ? message.content : "";
|
||||
const chatTitle = messageContent.slice(0, 100) || "Untitled Chat";
|
||||
|
||||
|
||||
const newChat = await createChat({
|
||||
type: researchMode,
|
||||
title: chatTitle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue