diff --git a/apps/tasks/lib/components/user_bottom_sheet.dart b/apps/tasks/lib/components/user_bottom_sheet.dart index a574454d..9badc9e6 100644 --- a/apps/tasks/lib/components/user_bottom_sheet.dart +++ b/apps/tasks/lib/components/user_bottom_sheet.dart @@ -81,7 +81,7 @@ class _UserBottomSheetState extends State { return LoadingFutureBuilder( loadingWidget: const SizedBox(), future: - WardService().getWardOverviews(organizationId: currentWardController.currentWard!.organizationId), + WardService().getWardOverviews(organizationId: currentWardController.currentWard?.organizationId), thenWidgetBuilder: (BuildContext context, List data) { double menuWidth = min(250, width * 0.7); return PopupMenuButton(