Skip to content

Commit

Permalink
fix: check mount before reload on product page
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 authored Sep 26, 2023
1 parent 6d3ff27 commit 793efa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/menu/product_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ class _ProductPageState extends State<ProductPage> {
}

void _reload() {
setState(() {});
if (mounted) {
setState(() {});
}
}

void _handleCreateIng() {
Expand Down

0 comments on commit 793efa9

Please sign in to comment.