Skip to content

Commit

Permalink
[#133] 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean9701 authored and 00yhsp committed Nov 20, 2024
1 parent 7c1622f commit 0356e40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AGAMI/Sources/Presentation/View/Plake/PlakeListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private struct ListView: View {
ScrollView(showsIndicators: false) {
LazyVStack(spacing: verticalSpacingValue) {
Group {
if !viewModel.searchText.isEmpty && viewModel.isSearchResultEmpty {
if viewModel.hasNoResultsForSearch {
EmtpyResult()
} else if listCellPlaceholder.showArchiveListUpLoadingCell {
ArchiveListUpLoadingCell(viewModel: viewModel, size: size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ final class PlakeListViewModel {
var isDialogPresented: Bool = false
var exportingState: ExportingState = .none

var hasNoResultsForSearch: Bool {
!searchText.isEmpty && isSearchResultEmpty
}

func fetchPlaylists() {
isFetching = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ final class SearchStartViewModel {
}

func initializeView() {
loadSavedSongs()
Task {
await fetchCurrentLocation()
}
Expand Down

0 comments on commit 0356e40

Please sign in to comment.