Skip to content

Commit

Permalink
Fix for attach view to teams error
Browse files Browse the repository at this point in the history
Co-authored-by: CSÉCSY László <[email protected]>
  • Loading branch information
divya-intelli and boobaa committed Nov 28, 2023
1 parent 7f5e8c8 commit 058da45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apigee_edge_teams/apigee_edge_teams.module
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function apigee_edge_teams_preprocess(&$variables, $hook) {
}

$team = \Drupal::routeMatch()->getParameter('team');
if (!$team || $team->getStatus() !== TeamInterface::STATUS_INACTIVE) {
if (!($team instanceof TeamInterface) || $team->getStatus() !== TeamInterface::STATUS_INACTIVE) {
return;
}

Expand Down

0 comments on commit 058da45

Please sign in to comment.