diff --git a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/searchparameters/model/SearchParametersUiState.kt b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/searchparameters/model/SearchParametersUiState.kt index 5ef3bff7d0a..01692d8488e 100644 --- a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/searchparameters/model/SearchParametersUiState.kt +++ b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/searchparameters/model/SearchParametersUiState.kt @@ -7,7 +7,9 @@ import org.dhis2.form.model.FieldUiModel data class SearchParametersUiState( val items: List = listOf(), val minAttributesMessage: String? = null, - private val _shouldShowMinAttributeWarning: MutableSharedFlow = MutableSharedFlow(), + private val _shouldShowMinAttributeWarning: MutableSharedFlow = MutableSharedFlow( + replay = Int.MAX_VALUE, + ), val searchEnabled: Boolean = false, val clearSearchEnabled: Boolean = false, ) {