From f3e1971a9bc42544fcb5660edde1a4057fd13ddd Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 22 Dec 2024 12:39:47 +0000 Subject: [PATCH] =?UTF-8?q?Distinct=20search=20completions=20to=20fix=20#1?= =?UTF-8?q?359=20=E6=90=9C=E7=B4=A2=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject/BangumiSubjectSearchCompletionRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/shared/app-data/src/commonMain/kotlin/data/repository/subject/BangumiSubjectSearchCompletionRepository.kt b/app/shared/app-data/src/commonMain/kotlin/data/repository/subject/BangumiSubjectSearchCompletionRepository.kt index 930eece37e..974e3b482c 100644 --- a/app/shared/app-data/src/commonMain/kotlin/data/repository/subject/BangumiSubjectSearchCompletionRepository.kt +++ b/app/shared/app-data/src/commonMain/kotlin/data/repository/subject/BangumiSubjectSearchCompletionRepository.kt @@ -51,7 +51,7 @@ class BangumiSubjectSearchCompletionRepository( ) LoadResult.Page( - data = completions, + data = completions.distinct(), prevKey = null, nextKey = null, )