add a fix for searches

This commit is contained in:
Ashley 2022-12-31 11:05:26 +00:00
parent 40c549b2d0
commit 47096ec018

View file

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