fix(model): MoA row shows 'not loaded' on null temperatures (#1421)

This commit is contained in:
m57 authored and GitHub committed 2026-09-30 22:16:32 +03:00
1 parent a8dd055426
commit 6e14c49df1
3 files changed
+45 -5

No files matched your search

@@ -19,6 +19,7 @@ import androidx.compose.runtime.snapshotFlow
import androidx.compose.ui.platform.ClipEntry
import androidx.compose.ui.platform.LocalClipboard
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.core.content.ContextCompat
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
@@ -146,7 +147,7 @@ fun ChatLifecycleEffects(
// Show error as snackbar
val clipboard = LocalClipboard.current
val copyLabel = context.getString(R.string.action_copy_error)
val copyLabel = stringResource(R.string.action_copy_error)
// Own scope + immediate clear: a later `errorMessage = null` elsewhere must not cancel a visible popup.
val snackbarScope = rememberCoroutineScope()
LaunchedEffect(errorMessage) {