Skip to content

Commit

Permalink
[Feat] #470 - userCurationCell 업데이트 함수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JMM00 committed Aug 13, 2023
1 parent 89eff63 commit 20b0b76
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ final class ReadCurationViewModel: ObservableObject {
window.rootViewController?.present(activityVC, animated: true, completion: nil)
}

func fetchCuration() {
if let index = shortcutsZipViewModel.userCurations.firstIndex(where: {$0.id == self.curation.id}) {
self.curation = shortcutsZipViewModel.userCurations[index]
print("curation", self.curation)
}
}

func fetchShortcut(from shortcutCellModel: ShortcutCellModel) -> Shortcuts {
shortcutsZipViewModel.fetchShortcutDetail(id: shortcutCellModel.id) ?? Shortcuts()
}
Expand Down

0 comments on commit 20b0b76

Please sign in to comment.