front dev update
This commit is contained in:
@@ -18,6 +18,7 @@ import 'package:pshared/models/resources.dart';
|
||||
import 'package:pshared/provider/organizations.dart';
|
||||
import 'package:pshared/provider/resource.dart';
|
||||
import 'package:pshared/service/permissions.dart';
|
||||
import 'package:pshared/utils/exception.dart';
|
||||
|
||||
|
||||
class PermissionsProvider extends ChangeNotifier {
|
||||
@@ -43,10 +44,7 @@ class PermissionsProvider extends ChangeNotifier {
|
||||
await operation();
|
||||
return await load();
|
||||
} catch (e) {
|
||||
_userAccess = _userAccess.copyWith(
|
||||
error: e is Exception ? e : Exception(e.toString()),
|
||||
isLoading: false,
|
||||
);
|
||||
_userAccess = _userAccess.copyWith(error: toException(e), isLoading: false);
|
||||
notifyListeners();
|
||||
return _userAccess.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user