Fixes null list names showing before the list is loaded

This commit is contained in:
Vitor Pamplona 2023-11-30 10:33:48 -05:00
parent 7322fd7aae
commit c692c9125b

View File

@ -809,7 +809,7 @@ fun RenderOption(option: Name) {
modifier = Modifier.fillMaxWidth()
) {
val name by option.note.live().metadata.map {
"/n/" + (it.note as? AddressableNote)?.dTag()
"/n/" + ((it.note as? AddressableNote)?.dTag() ?: "")
}.observeAsState()
Text(text = name ?: "", color = MaterialTheme.colorScheme.onSurface)