We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f5a53c commit b9fda9eCopy full SHA for b9fda9e
1 file changed
Resolver/WidgetSearchContentResolver.php
@@ -112,7 +112,7 @@ public function getWidgetStaticContent(Widget $widget)
112
$_result = $_result->getResult();
113
114
if ($_result->getScore() > 0.4) {
115
- if ($_entity instanceof Widget) {
+ if ($_entity instanceof Widget && null !== $_entity->getWidgetMap()) {
116
$view = $_entity->getWidgetMap()->getView();
117
if ($this->isPageAccessible($view)) {
118
if (!in_array($view->getId(), $alreadyAdded) && !$view instanceof Template) {
0 commit comments