mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
clear existing output
This commit is contained in:
@@ -91,6 +91,7 @@ const EditorAiMenu = ({ editor }: EditorAiMenuProps): JSX.Element | null => {
|
||||
const { from, to } = editor.state.selection;
|
||||
const content = editor.state.doc.textBetween(from, to);
|
||||
|
||||
setOutput("");
|
||||
setIsLoading(true);
|
||||
aiGenerateStreamMutation.mutate({
|
||||
action: command.action,
|
||||
|
||||
Reference in New Issue
Block a user