chore: ran linting

This commit is contained in:
Anish Sarkar 2026-05-20 12:55:10 +05:30
parent 78a3c71bb5
commit fe07de3f9c
7 changed files with 21 additions and 11 deletions

View file

@ -216,10 +216,7 @@ export const DocumentNode = React.memo(function DocumentNode({
return (
<>
{isMemoryDocument ? (
<span
aria-disabled="true"
className="h-3.5 w-3.5 shrink-0 cursor-default"
>
<span aria-disabled="true" className="h-3.5 w-3.5 shrink-0 cursor-default">
<Checkbox
checked={false}
disabled

View file

@ -16,13 +16,13 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { toast } from "sonner";
import { closeEditorPanelAtom, editorPanelAtom } from "@/atoms/editor/editor-panel.atom";
import { VersionHistoryButton } from "@/components/documents/version-history";
import { SourceCodeEditor } from "@/components/editor/source-code-editor";
import {
fetchMemoryEditorDocument,
getMemoryLimitState,
type MemoryLimits,
saveMemoryMarkdown,
} from "@/components/editor-panel/memory";
import { SourceCodeEditor } from "@/components/editor/source-code-editor";
import { MarkdownViewer } from "@/components/markdown-viewer";
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";

View file

@ -832,7 +832,10 @@ function AuthenticatedDocumentsSidebarBase({
throw new Error(errorData.detail || "Export failed");
}
const data = (await response.json()) as { memory_md?: string };
downloadTextFile(data.memory_md ?? "", doc.title.endsWith(".md") ? doc.title : `${doc.title}.md`);
downloadTextFile(
data.memory_md ?? "",
doc.title.endsWith(".md") ? doc.title : `${doc.title}.md`
);
return;
} catch (err) {
console.error("Memory export failed:", err);