Remove redundant query for replies when collapsed and expanded

This commit is contained in:
Arkadiusz Fal
2021-12-08 00:06:59 +01:00
parent 1b090fcd51
commit a44a61b017
2 changed files with 6 additions and 4 deletions

View File

@@ -144,10 +144,6 @@ struct CommentView: View {
Button {
repliesID = repliesID == comment.id ? nil : comment.id
if repliesID.isNil {
comments.replies = []
}
guard !repliesID.isNil, !comment.repliesPage.isNil else {
return
}