From e38031a02f14b24cdaed8e6f4115def6ff31b932 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 5 May 2026 11:21:55 +0200 Subject: [PATCH] Fix tracker search results missing bound track record There is a possibility that the source changed the manga title after the track record was bound. In that case it is possible that the track record won't be found anymore when executing the search. Thus, instead of using the manga title as the search string, the existing track records title should be used instead to make sure that the bound track record will be included in the search results. --- src/features/tracker/components/TrackerSearch.tsx | 4 +++- src/features/tracker/components/cards/TrackerCard.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/tracker/components/TrackerSearch.tsx b/src/features/tracker/components/TrackerSearch.tsx index a5a7b936..10904c43 100644 --- a/src/features/tracker/components/TrackerSearch.tsx +++ b/src/features/tracker/components/TrackerSearch.tsx @@ -117,16 +117,18 @@ export const TrackerSearch = ({ tracker, closeSearchMode, trackedId, + trackedTitle, }: { manga: MangaIdInfo & Pick; tracker: TTrackerBind; closeSearchMode: () => void; trackedId?: string; + trackedTitle?: string; }) => { const { t } = useLingui(); const getOptionForDirection = useGetOptionForDirection(); - const [searchString, setSearchString] = useState(manga.title); + const [searchString, setSearchString] = useState(trackedTitle ?? manga.title); const [tmpSearchString, setTmpSearchString] = useState(searchString); const [selectedTrackerRemoteId, setSelectedTrackerRemoteId] = useState(trackedId); diff --git a/src/features/tracker/components/cards/TrackerCard.tsx b/src/features/tracker/components/cards/TrackerCard.tsx index 3199e7c6..14bb0423 100644 --- a/src/features/tracker/components/cards/TrackerCard.tsx +++ b/src/features/tracker/components/cards/TrackerCard.tsx @@ -43,6 +43,7 @@ export const TrackerCard = ({ manga={manga} tracker={tracker} trackedId={trackRecord?.remoteId} + trackedTitle={trackRecord?.title} closeSearchMode={() => setSearchMode(undefined)} /> );