mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-15 18:40:05 +00:00
fix(search): 🐛 always set label for search clients
This commit is contained in:
parent
b4d19dc72a
commit
6fb2b1aaf9
|
@ -88,7 +88,7 @@ function adaptApiResponse( config, query, response, showDescription ) {
|
|||
const thumbnail = page.thumbnail;
|
||||
return {
|
||||
id: page.pageid,
|
||||
label: page.from,
|
||||
label: page.from || page.title,
|
||||
key: page.title.replace( / /g, '_' ),
|
||||
title: page.title,
|
||||
description: showDescription ? getDescription( page ) : undefined,
|
||||
|
|
|
@ -46,7 +46,7 @@ function adaptApiResponse( config, query, response, showDescription ) {
|
|||
const thumbnail = page.thumbnail;
|
||||
return {
|
||||
id: page.id,
|
||||
label: page.matched_title,
|
||||
label: page.matched_title || page.title,
|
||||
key: page.key,
|
||||
title: page.title,
|
||||
description: showDescription ? page.description : undefined,
|
||||
|
|
Loading…
Reference in a new issue