File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Meme/Meme/Sources/Wiki/Presentation/Search/ViewController Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,13 @@ final class MemeSearchViewController: BaseViewController {
124124 . sink { [ weak self] items in
125125 guard let self = self else { return }
126126 let snapshot = dataSource? . snapshot ( )
127- if snapshot? . indexOfSection ( . list) == nil {
127+ if snapshot? . indexOfSection ( . list) == nil || ( ( snapshot ? . itemIdentifiers ( inSection : . list ) . isEmpty ) != nil ) {
128128 self . updateSnapshot ( section: . list, items: items. map { . list( $0) } )
129129 } else {
130130 self . appendSnapshot ( section: . list, items: items. map { . list( $0) } )
131131 }
132132 } . store ( in: & subscription)
133133
134-
135134 viewModel. emptyPublisher
136135 . receive ( on: DispatchQueue . main)
137136 . sink { [ weak self] isEmpty in
You can’t perform that action at this time.
0 commit comments