From 73167099bfc5e0f0253f7148a2334926ec23c4e1 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Fri, 20 Dec 2024 00:17:18 +0900 Subject: [PATCH] =?UTF-8?q?[MOD/#308]=20immutableList=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/src/main/java/com/terning/feature/home/HomeRoute.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt b/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt index 555d68f9..f4a677fd 100644 --- a/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt +++ b/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt @@ -56,6 +56,7 @@ import com.terning.feature.home.component.HomeRecommendEmptyIntern import com.terning.feature.home.component.HomeUpcomingEmptyFilter import com.terning.feature.home.component.HomeUpcomingEmptyIntern import com.terning.feature.home.component.HomeUpcomingInternScreen +import okhttp3.internal.toImmutableList const val NAME_MAX_LENGTH = 5 @@ -144,7 +145,7 @@ fun HomeScreen( } val homeRecommendInternList = when (homeState.homeRecommendInternState) { - is UiState.Success -> (homeState.homeRecommendInternState as UiState.Success).data.homeRecommendInternDetail + is UiState.Success -> (homeState.homeRecommendInternState as UiState.Success).data.homeRecommendInternDetail.toImmutableList() else -> listOf() } @@ -424,7 +425,7 @@ private fun ShowUpcomingIntern( ) else -> HomeUpcomingInternScreen( - internList = homeUpcomingInternDetail, + internList = homeUpcomingInternDetail.toImmutableList(), navigateToIntern = navigateToIntern, ) }