mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +00:00
Remove redundant query for replies when collapsed and expanded
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user