Skip to content

Commit

Permalink
fix: return empty string if no translation was found (#3325)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 11, 2025
1 parent 08a376b commit b80de1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public function getFilters(): array
private function getPermissionTranslation(string $string): string
{
$translationCode = sprintf('permission::%s', $string);
return Translation::get($translationCode);
return Translation::get($translationCode) ?? '';
}
}

0 comments on commit b80de1e

Please sign in to comment.