From e7e1031f171cb1b1b94215398e075e51cd50826e Mon Sep 17 00:00:00 2001 From: michaelbel Date: Sun, 15 Dec 2024 14:40:17 +0300 Subject: [PATCH] Update project --- .run/jvmApp.run.xml | 24 +++++++++++++++++++ .../michaelbel/movies/feed/FeedViewModel.kt | 8 ++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .run/jvmApp.run.xml diff --git a/.run/jvmApp.run.xml b/.run/jvmApp.run.xml new file mode 100644 index 000000000..b75c3931c --- /dev/null +++ b/.run/jvmApp.run.xml @@ -0,0 +1,24 @@ + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/feature/feed-impl/src/iosMain/kotlin/org/michaelbel/movies/feed/FeedViewModel.kt b/feature/feed-impl/src/iosMain/kotlin/org/michaelbel/movies/feed/FeedViewModel.kt index fcb49df9c..97d3d65a5 100644 --- a/feature/feed-impl/src/iosMain/kotlin/org/michaelbel/movies/feed/FeedViewModel.kt +++ b/feature/feed-impl/src/iosMain/kotlin/org/michaelbel/movies/feed/FeedViewModel.kt @@ -38,5 +38,11 @@ class FeedViewModel( val pagingDataFlow: StateFlow> = currentMovieList.flatMapLatest { movieList -> flowOf(interactor.moviesResult(movieList.nameOrLocalList)) - }.catch { emptyList>() }.stateIn(scope = scope, started = SharingStarted.Lazily, initialValue = emptyList()) + }.catch { + emptyList>() + }.stateIn( + scope = scope, + started = SharingStarted.Lazily, + initialValue = emptyList() + ) } \ No newline at end of file