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.

chore: remove actions in explanation when not explain

Richard Shiue182101023be8
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart
index 1e0bac83c5..b3e325fedb 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart
@@ -293,7 +293,8 @@ class _OverlayContentState extends State<OverlayContent> {
),
),
),
- if (showSuggestionPopup) ...[
+ if (showSuggestionPopup &&
+ state.command == AiWriterCommand.explain) ...[
const VSpace(4.0),
SuggestionActionBar(
currentCommand: state.command,