fix: return no category label for a job profile without category
This commit is contained in:
1 parent
f7611b3ac1
commit
126a0680db
1 file changed
+4
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user