diff --git a/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift b/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift index c6cf12fd..85cae808 100644 --- a/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift +++ b/SNUTT-2022/SNUTT/Views/Scenes/LectureDetailScene.swift @@ -91,12 +91,10 @@ struct LectureDetailScene: View { .onAppear { isMapViewExpanded = viewModel.shouldOpenLectureMapView() } - .onAppear { - Task { - if let evLecture = await viewModel.getEvLectureInfo(of: lecture) { - lecture.updateEvLecture(to: evLecture) - viewModel.reloadDetailWebView(detailId: evLecture.evLectureId) - } + .task { + if let evLecture = await viewModel.getEvLectureInfo(of: lecture) { + lecture.updateEvLecture(to: evLecture) + viewModel.reloadDetailWebView(detailId: evLecture.evLectureId) } } .onChange(of: isMapViewExpanded) {