fix: return no category label for a job profile without category

This commit is contained in:
fromme committed 2026-11-12 11:13:30 +01:00
1 parent f7611b3ac1
commit 126a0680db
1 file changed
+4
+4
View File
@@ -129,6 +129,10 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa
public function getCategoryLabel(): ?string public function getCategoryLabel(): ?string
{ {
if (null === $this->category) {
return null;
}
return self::getCategories()[$this->category] ?? null; return self::getCategories()[$this->category] ?? null;
} }