add a fix for searches

This commit is contained in:
Ashley 2022-12-31 11:05:26 +00:00
parent f0d7e9d3c7
commit edfa7935df

View file

@ -91,11 +91,13 @@ module.exports = function (app, config, renderTemplate) {
h = " "; h = " ";
if (j.Search.Results.DynamicItem) { if (j.Search) {
if ("Results.DynamicItem" in j.Search) {
if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") { if (j.Search.Results.DynamicItem.id == "didYouMeanRenderer") {
var h = JSON.parse(j.Search.Results.DynamicItem.Title); var h = JSON.parse(j.Search.Results.DynamicItem.Title);
} }
} }
}
const summary = await wiki const summary = await wiki
.summary(query + " ") .summary(query + " ")