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: removed .then() handler

Chirag Bargoojar96cdb82ca4d3
diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart
index 78aa3d0b7f..5db6afacef 100644
--- a/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart
+++ b/frontend/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart
@@ -21,11 +21,8 @@ extension IntoDialog on Widget {
child: this,
),
context,
- ).then(
- (value) {
- dialogFocusNode.dispose();
- },
);
+ dialogFocusNode.dispose();
}
}