summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-04-08 00:51:16 -0700
committerFuwn <[email protected]>2025-04-08 00:51:16 -0700
commit443916a5ee376feab0691eace4b53015723e1d33 (patch)
treec6e8deaec1b79013f3fb8f0c68fea1d6af153f1c /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-443916a5ee376feab0691eace4b53015723e1d33.tar.xz
sora-testing-443916a5ee376feab0691eace4b53015723e1d33.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift14
1 files changed, 6 insertions, 8 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index ecaa971..ca3338e 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -89,13 +89,11 @@ struct PostGridView: View {
manager.posts = []
manager.currentPage = 1
- Task {
- await manager.fetchPosts(
- page: 1,
- tags: manager.searchHistory[newIndex].tags,
- replace: true
- )
- }
+ manager.fetchPosts(
+ page: 1,
+ tags: manager.searchHistory[newIndex].tags,
+ replace: true
+ )
}
}
.toolbar {
@@ -156,7 +154,7 @@ struct PostGridView: View {
.navigationTitle("Posts")
.refreshable {
manager.clearCachedPages()
- await manager.fetchPosts(page: 1, tags: manager.tags, replace: true)
+ manager.fetchPosts(page: 1, tags: manager.tags, replace: true)
}
.scrollDisabled(manager.isLoading)
.sheet(isPresented: $isSearchHistoryPresented) {