mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-19 12:24:53 -04:00
fix: continue writing empty text case (#7574)
This commit is contained in:
parent
8a9cc278ec
commit
461ac91b32
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue