Skip to content

Commit

Permalink
[Fix] #289 - viewWillAppear에서 메뉴 셀 초기화
Browse files Browse the repository at this point in the history
다른 메뉴도 추가하기 클릭했을 때를 대비
  • Loading branch information
EunsuSeo01 committed Nov 14, 2024
1 parent 7969db9 commit 774b67e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ final class AddMenuViewController: BaseViewController {
bindViewModel()
}

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

viewModel.menus = [MenuData()]
menuCollectionView.reloadData()
}

// MARK: - Set UI

override func setupHierarchy() {
Expand Down

0 comments on commit 774b67e

Please sign in to comment.