mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
chore: ran linting
This commit is contained in:
parent
78a3c71bb5
commit
fe07de3f9c
7 changed files with 21 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue