Fixes caching issue on the list selection in the top bar

pull/656/head
Vitor Pamplona 2023-10-20 13:27:24 -04:00
rodzic 8317a06b6f
commit 87e8948d9a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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