콘텐츠 답글 - 댓글이 랜덤으로 보이는 버그 수정
This commit is contained in:
@@ -19,8 +19,6 @@ struct AudioContentCommentListView: View {
|
||||
|
||||
@State private var commentId: Int = 0
|
||||
@State private var isShowDeletePopup: Bool = false
|
||||
@State private var isDisabledNavigationLink: Bool = false
|
||||
@State private var isShowReplyView: Bool = false
|
||||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
@@ -105,18 +103,9 @@ struct AudioContentCommentListView: View {
|
||||
ForEach(0..<viewModel.commentList.count, id: \.self) { index in
|
||||
let comment = viewModel.commentList[index]
|
||||
VStack {
|
||||
NavigationLink(
|
||||
destination: AudioContentListReplyView(
|
||||
creatorId: creatorId,
|
||||
audioContentId: audioContentId,
|
||||
parentComment: comment
|
||||
),
|
||||
isActive: $isShowReplyView
|
||||
) { EmptyView() }
|
||||
|
||||
AudioContentCommentItemView(
|
||||
isDisabledNavigationLink: $isDisabledNavigationLink,
|
||||
contentCreatorId: creatorId,
|
||||
audioContentId: audioContentId,
|
||||
commentItem: comment,
|
||||
isReplyComment: false,
|
||||
isShowPopupMenuButton: true,
|
||||
@@ -135,11 +124,6 @@ struct AudioContentCommentListView: View {
|
||||
viewModel.getCommentList()
|
||||
}
|
||||
}
|
||||
.onTapGesture {
|
||||
if !isDisabledNavigationLink {
|
||||
isShowReplyView = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user