콘텐츠 답글 - 댓글이 랜덤으로 보이는 버그 수정

This commit is contained in:
Yu Sung
2023-09-13 16:54:24 +09:00
parent 3bcd2b7dba
commit 48b1093dac
3 changed files with 15 additions and 26 deletions

View File

@@ -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
}
}
}
}
}