Browse Source

fix: removed .then() handler

Chirag Bargoojar 2 years ago
parent
commit
96cdb82ca4

+ 1 - 4
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();
   }
 }