Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: continue writing empty text case (#7574)
Richard Shiue461ac91b32ab
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dartindex 2fb00c0b58..376757b1a7 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart@@ -318,7 +318,7 @@ class AiWriterCubit extends Cubit<AiWriterState> {end: cursorPosition,).normalized;- String text = await editorState.getMarkdownInSelection(selection);+ String text = (await editorState.getMarkdownInSelection(selection)).trim();if (text.isEmpty) {if (state is! ReadyAiWriterState) {return;