chore: biome lint

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-12-19 15:38:39 -08:00
parent b4b53b6625
commit b5a6321eb4
8 changed files with 79 additions and 46 deletions

View file

@ -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>

View file

@ -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,