mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-07 19:49:29 +00:00
fix: reset activeLibraryId on 'Try again' button press in HomePage
This commit is contained in:
parent
19c5385b58
commit
b81473998e
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ class HomePage extends HookConsumerWidget {
|
|||
// try again button
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
ref.read(apiSettingsProvider.notifier).updateState(
|
||||
apiSettings.copyWith(activeLibraryId: null),
|
||||
);
|
||||
ref.invalidate(personalizedViewProvider);
|
||||
},
|
||||
child: const Text('Try again'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue