Skip to content

Commit

Permalink
Fix for attach view to teams error (#996)
Browse files Browse the repository at this point in the history
Co-authored-by: CSÉCSY László <[email protected]>, <[email protected]>
  • Loading branch information
divya-intelli and boobaa authored Nov 30, 2023
1 parent 7f5e8c8 commit e8e4907
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 e8e4907

Please sign in to comment.