Skip to content

Commit

Permalink
Fix error while edit team app (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Nov 21, 2022
1 parent 243549e commit 09085e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/apigee_edge_teams/src/Entity/Form/TeamAppEditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ protected function appCredentialController(string $owner, string $app_name): App
*/
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
foreach (Element::children($form['credential']) as $credential) {
$form['credential'][$credential]['api_products'] += $this->nonMemberApiProductAccessWarningElement($form, $form_state);
if (isset($form['credential'])) {
foreach (Element::children($form['credential']) as $credential) {
$form['credential'][$credential]['api_products'] += $this->nonMemberApiProductAccessWarningElement($form, $form_state);
}
}
return $form;
}
Expand Down

0 comments on commit 09085e5

Please sign in to comment.