From c82f07056dbbd5aa5a87a2b3d956d9f951f7964b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 15 Mar 2025 13:20:53 -0500 Subject: [PATCH] refactor --- web/repertory/lib/models/mount_list.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/repertory/lib/models/mount_list.dart b/web/repertory/lib/models/mount_list.dart index 6bc41849..745958bf 100644 --- a/web/repertory/lib/models/mount_list.dart +++ b/web/repertory/lib/models/mount_list.dart @@ -109,16 +109,16 @@ class MountList with ChangeNotifier { } Future reset() async { - _mountList = []; - notifyListeners(); - - _fetch(); - if (constants.navigatorKey.currentContext == null || ModalRoute.of(constants.navigatorKey.currentContext!)?.settings.name != '/') { constants.navigatorKey.currentState?.pushReplacementNamed('/'); } + + _mountList = []; + notifyListeners(); + + return _fetch(); } void remove(String name) {