Skip to content

Commit

Permalink
[refactor] CellCount를 append 방식에서 새로이 할당으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jinwoong16 committed Nov 29, 2022
1 parent 524381b commit a87458a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ final class BrowseViewModel {
}
.map(transform(with:))
.do(onNext: { [weak self] items in
items.forEach { item in
self?.cellCount.append(item.quests.count)
}
self?.cellCount = items.map({ $0.quests.count })
})
.asDriver(onErrorJustReturn: [])

Expand Down

0 comments on commit a87458a

Please sign in to comment.