Fixes caching issue on the list selection in the top bar

This commit is contained in:
Vitor Pamplona
2023-10-20 13:27:24 -04:00
parent 8317a06b6f
commit 87e8948d9a
@@ -692,7 +692,7 @@ fun SimpleTextSpinner(
id = R.string.select_an_option
)
var currentText by remember {
var currentText by remember(placeholderCode) {
mutableStateOf(
options.firstOrNull { it.code == placeholderCode }?.name?.name(context) ?: selectAnOption
)