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: fix test

Richard Shiue0cefaf633c48
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/callout_node_parser.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/callout_node_parser.dart
index 45d8be9844..b16a44cf6f 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/callout_node_parser.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/callout_node_parser.dart
@@ -19,7 +19,7 @@ class CalloutNodeParser extends NodeParser {
.map((e) => '> $e')
.join('\n');
final type = node.attributes[CalloutBlockKeys.iconType];
- final icon = type == FlowyIconType.emoji.name
+ final icon = type == FlowyIconType.emoji.name || type == null || type == ""
? node.attributes[CalloutBlockKeys.icon]
: null;