mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-14 10:04:56 +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 = '';
|
descriptionText = '';
|
||||||
|
|
||||||
// Check if description exists
|
// Check if description exists
|
||||||
if (pageDescription) {
|
if (pageDescription || pageDescription != '...') {
|
||||||
// If the description is an array, use the first item
|
// If the description is an array, use the first item
|
||||||
if (typeof pageDescription === 'object' && pageDescription[0]) {
|
if (typeof pageDescription === 'object' && pageDescription[0]) {
|
||||||
descriptionText = pageDescription[0].toString();
|
descriptionText = pageDescription[0].toString();
|
||||||
|
|
Loading…
Reference in a new issue