fix: reset activeLibraryId on 'Try again' button press in HomePage

This commit is contained in:
Dr-Blank 2024-10-03 06:33:48 -04:00
parent 19c5385b58
commit b81473998e
No known key found for this signature in database
GPG key ID: 7452CC63F210A266

View file

@ -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'),