Skip to content

Commit f897e0c

Browse files
committed
[FIX]: 리스트의 인덱스를 기반으로 새 비디오 목록 생성 및 대입하도록 변경
1 parent 09e03d3 commit f897e0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Domain/UseCase/VideoUseCase.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,11 @@ private extension VideoUseCase {
139139
let video = editingVideos.remove(at: oldIndex)
140140
editingVideos.insert(video, at: index)
141141

142-
let newVideos = editingVideos.enumerated().map { (index, video) in
142+
let listIndexOrderedVideo = editingVideos.enumerated().map { (index, video) in
143143
updatedVideo(video: video, index: index)
144144
}
145-
145+
146+
editingVideos = listIndexOrderedVideo
146147
return newVideos
147148
}
148149

0 commit comments

Comments
 (0)