fix: handle empty display_name on templates (#18106)

This commit is contained in:
Bruno Quaresma
2025-05-29 13:13:15 -03:00
committed by GitHub
parent d06eff2b2f
commit 458780d059
+1 -1
View File
@@ -222,7 +222,7 @@ const TaskForm: FC<TaskFormProps> = ({ templates }) => {
return (
<SelectItem value={template.id} key={template.id}>
<span className="overflow-hidden text-ellipsis block">
{template.display_name ?? template.name}
{template.display_name || template.name}
</span>
</SelectItem>
);