add context to mounted check
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m9s

This commit is contained in:
2026-01-13 21:38:53 +01:00
parent 1b297d15b0
commit 016c1ceb6e

View File

@@ -83,7 +83,7 @@ class _GroupDetailViewState extends State<GroupDetailView> {
], ],
), ),
).then((confirmed) async { ).then((confirmed) async {
if (confirmed == true && mounted) { if (confirmed == true && context.mounted) {
bool success = await db.groupDao.deleteGroup(groupId: widget.groupToEdit!.id); bool success = await db.groupDao.deleteGroup(groupId: widget.groupToEdit!.id);
if (!context.mounted) return; if (!context.mounted) return;
if (success) { if (success) {