summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 62706c2..6d96bdc 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -241,7 +241,9 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
}
.onAppear {
if let initialTag {
- localSearchText = initialTag
+ if localSearchText.isEmpty || !hasAppearedBefore {
+ localSearchText = initialTag
+ }
if !hasAppearedBefore {
hasAppearedBefore = true