@@ -99,6 +99,9 @@ class ArticleType extends AbstractType
$tags = array_map('trim', explode(',', $tagsInput));
foreach ($tags as $tagName) {
+ if ($tagName === '') {
+ continue;
+ }
$tag = $this->tagRepository->findOneBy(['name' => $tagName]);
if (!$tag) {