Skip to content

Commit d753a7f

Browse files
committed
Update history_providers.dart
1 parent 80f676b commit d753a7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/providers/history_providers.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class HistoryMetaStateNotifier
9292

9393
Future<void> clearAllHistory() async {
9494
await hiveHandler.clearAllHistory();
95+
ref.read(selectedHistoryIdStateProvider.notifier).state = null;
96+
ref.read(selectedHistoryRequestModelProvider.notifier).state = null;
9597
loadHistoryMetas();
9698
}
9799
}

0 commit comments

Comments
 (0)