|
@@ -26,7 +26,7 @@ final class MainViewModel: ObservableObject {
|
|
if stringValue.isEmpty {
|
|
if stringValue.isEmpty {
|
|
self?.fetchTrendingData(chunk: self?.chunkCount ?? 0)
|
|
self?.fetchTrendingData(chunk: self?.chunkCount ?? 0)
|
|
} else {
|
|
} else {
|
|
- self?.fetchSearchDataBy(string: self!.searchText , chunk: self?.chunkCount ?? 0)
|
|
|
|
|
|
+ self?.fetchSearchDataBy(string: stringValue , chunk: self?.chunkCount ?? 0)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.store(in: &subscriptions)
|
|
.store(in: &subscriptions)
|