summaryrefslogtreecommitdiff
path: root/Sora/Data/Booru
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Data/Booru')
-rw-r--r--Sora/Data/Booru/BooruManager.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/Sora/Data/Booru/BooruManager.swift b/Sora/Data/Booru/BooruManager.swift
index db4d8f9..ce5eaec 100644
--- a/Sora/Data/Booru/BooruManager.swift
+++ b/Sora/Data/Booru/BooruManager.swift
@@ -157,6 +157,8 @@ class BooruManager: ObservableObject { // swiftlint:disable:this type_body_leng
func performSearch(settings: SettingsManager? = nil) async {
let inputTags = tags
+ guard !inputTags.isEmpty else { return }
+
if searchHistory.last?.tags == inputTags { return }
if historyIndex < searchHistory.count - 1 {