Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.12'
Browse files Browse the repository at this point in the history
Release/3.0.12
  • Loading branch information
mayurngondhkar committed Mar 14, 2023
2 parents 031165d + 17f4629 commit aa7279f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ protected function getCurrentNode() : ?NodeInterface {
$node = $this->routeMatch->getParameter('node');
if ($route_name === 'entity.node.revision') {
try {
$vid = $this->routeMatch->getParameter('node_revision');
$node = $this->entityTypeManager->getStorage('node')
->loadRevision($vid);
$node = $this->routeMatch->getParameter('node_revision');
}
catch (Exception $exception) {
watchdog_exception('tide_site_preview', $exception);
Expand Down

0 comments on commit aa7279f

Please sign in to comment.