mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-12 00:59:46 +00:00
Add condition to check if there is no desc
This commit is contained in:
parent
ef5954b71f
commit
61df983d18
|
@ -308,7 +308,7 @@ window.WMTypeAhead = function(appendTo, searchInput) { // eslint-disable-line no
|
|||
descriptionText = '';
|
||||
|
||||
// Check if description exists
|
||||
if (pageDescription) {
|
||||
if (pageDescription || pageDescription != '...') {
|
||||
// If the description is an array, use the first item
|
||||
if (typeof pageDescription === 'object' && pageDescription[0]) {
|
||||
descriptionText = pageDescription[0].toString();
|
||||
|
|
Loading…
Reference in a new issue