fix(search): 🐛 always set label for search clients

This commit is contained in:
alistair3149 2023-08-03 21:01:21 -04:00
parent b4d19dc72a
commit 6fb2b1aaf9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,