staff e store
This commit is contained in:
@@ -22,8 +22,8 @@ class _StaffScreenState extends State<StaffScreen> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
// Carichiamo subito tutto
|
||||
context.read<StaffCubit>().loadAllStaff();
|
||||
_selectedStoreId = context.read<SessionBloc>().state.selectedStore!.id;
|
||||
context.read<StaffCubit>().loadStaffForStore(_selectedStoreId!);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user