mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 02:46:25 +02:00
chore: clean up comments in editor and composer
This commit is contained in:
parent
c78f0e78aa
commit
9e058e1329
2 changed files with 2 additions and 2 deletions
|
|
@ -117,7 +117,7 @@ export const InlineMentionEditor = forwardRef<InlineMentionEditorRef, InlineMent
|
|||
}
|
||||
}, [initialDocuments]);
|
||||
|
||||
// Seed editor with initialText on mount (e.g. clipboard content from Electron tray)
|
||||
// Seed editor with initialText on mount
|
||||
const initialTextAppliedRef = useRef(false);
|
||||
useEffect(() => {
|
||||
if (!initialText || initialTextAppliedRef.current || !editorRef.current) return;
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ const Composer: FC = () => {
|
|||
const composerRuntime = useComposerRuntime();
|
||||
const hasAutoFocusedRef = useRef(false);
|
||||
|
||||
// Clipboard content from Electron tray (pre-filled into composer)
|
||||
// Clipboard content
|
||||
const [clipboardText, setClipboardText] = useState<string | undefined>();
|
||||
useEffect(() => {
|
||||
const api = (window as { electronAPI?: { getClipboardContent?: () => Promise<string> } }).electronAPI;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue