Refactor provider and store models to use fromMap method; update associated stores handling in UI
This commit is contained in:
@@ -31,7 +31,7 @@ class StoreCubit extends Cubit<StoreState> {
|
||||
Future<void> loadStores() async {
|
||||
emit(state.copyWith(status: StoreStatus.loading));
|
||||
try {
|
||||
final stores = await _repository.getStoresByCompany(
|
||||
final stores = await _repository.fetchAllCompanyStores(
|
||||
_sessionBloc.state.company!.id,
|
||||
);
|
||||
final Map<String, List<StaffMemberModel>> staffByStore = {};
|
||||
|
||||
Reference in New Issue
Block a user