Skip to content

Commit 374a005

Browse files
Update lib/view/page/storage/local.dart
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c7bedc4 commit 374a005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/view/page/storage/local.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ class _LocalFilePageState extends ConsumerState<LocalFilePage> with AutomaticKee
4545
}
4646

4747
Future<void> _refresh() async {
48-
setState(() {
48+
setStateSafe(() {
4949
_entitiesFuture = _getEntities();
5050
});
51+
await _entitiesFuture;
5152
}
5253

5354
@override

0 commit comments

Comments
 (0)