mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-10 21:19: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
|
// try again button
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
ref.read(apiSettingsProvider.notifier).updateState(
|
||||||
|
apiSettings.copyWith(activeLibraryId: null),
|
||||||
|
);
|
||||||
ref.invalidate(personalizedViewProvider);
|
ref.invalidate(personalizedViewProvider);
|
||||||
},
|
},
|
||||||
child: const Text('Try again'),
|
child: const Text('Try again'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue