diff --git a/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php b/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php index 3de2470..70d421c 100644 --- a/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php +++ b/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php @@ -235,6 +235,11 @@ protected function getCurrentNode() : ?NodeInterface { $node = NULL; } } + + if (!($node instanceof NodeInterface)) { + $node = NULL; + } + $this->currentNode = $node; return $this->currentNode;