Skip to content

Commit

Permalink
fix exception when editing booru
Browse files Browse the repository at this point in the history
  • Loading branch information
NO-ob committed Jul 9, 2023
1 parent 49e64f9 commit 9c3643f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/pages/settings/booru_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class _BooruPageState extends State<BooruPage> {

Widget booruSelector() {
return SettingsBooruDropdown(
value: selectedBooru ?? settingsHandler.booruList[0],
value: settingsHandler.booruList.contains(selectedBooru) ? selectedBooru : settingsHandler.booruList[0],
onChanged: (Booru? newValue) {
final bool isNewValuePresent = settingsHandler.booruList.contains(newValue);
setState(() {
Expand Down

0 comments on commit 9c3643f

Please sign in to comment.