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) {