Fixed: Matched alternative titles and tags in series search results

pull/7333/head
Bogdan 4 months ago committed by GitHub
parent 135b5c2ddd
commit 07374de747
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,9 +22,9 @@ function SeriesSearchResult(props) {
let tag = null; let tag = null;
if (match.key === 'alternateTitles.title') { if (match.key === 'alternateTitles.title') {
alternateTitle = alternateTitles[match.arrayIndex]; alternateTitle = alternateTitles[match.refIndex];
} else if (match.key === 'tags.label') { } else if (match.key === 'tags.label') {
tag = tags[match.arrayIndex]; tag = tags[match.refIndex];
} }
return ( return (

@ -37,7 +37,7 @@ function getSuggestions(series, value) {
key: 'title' key: 'title'
} }
], ],
arrayIndex: 0 refIndex: 0
}); });
if (suggestions.length > limit) { if (suggestions.length > limit) {
break; break;

Loading…
Cancel
Save