- Issue created by @prashant.c
- 🇮🇳India prashant.c Dharamshala
It seems to be an error with <?PHP label ?> property being NULL. We can assign an empty string if the value is null.
ai_agents/src/Form/AiAgentForm.php
Existing code:
$form['#title'] = $this->t('AI agent: %label', [ '%label' => $this->entity->label(), ]);
Updated code:
$form['#title'] = $this->t('AI agent: %label', [ '%label' => $this->entity->label() ?? $this->t('New AI agent'), ]);
This should fix the issue.
- 🇮🇳India prashant.c Dharamshala
Seems it got duplicated in favor of https://www.drupal.org/project/ai_agents/issues/3518174 🐛 Unable to create new Agent Active . Closing this one