Skip to content

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.

fix: display paragraph mark only if the block content is empty (#6594)

Lucasca6a900874c9
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart
index 0c599cc5f2..10af411073 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart
@@ -445,9 +445,10 @@ class _MentionPageBlockContent extends StatelessWidget {
view.id,
content,
);
+ final isBlockContentEmpty = content == null || content.isEmpty;
// if the block is from the same doc, display the paragraph mark icon '¶'
- if (isSameDocument) {
+ if (isSameDocument && !isBlockContentEmpty) {
return [
const HSpace(2),
FlowySvg(