fix(EditNodeModal): fix incorrect property name in template rendering logic

The property name `display_name` was incorrectly used instead of `name` in the template rendering logic. This has been fixed to correctly display the name of the template parameter.
This commit is contained in:
anovazzi1 2023-09-12 21:28:01 -03:00
commit f33acd4685

View file

@ -139,10 +139,10 @@ const EditNodeModal = forwardRef(
.map((templateParam, index) => (
<TableRow key={index} className="h-10">
<TableCell className="truncate p-0 text-center text-sm text-foreground sm:px-3">
{myData.node?.template[templateParam].name
? myData.node.template[templateParam].name
{myData.node?.template[templateParam].display_name
? myData.node.template[templateParam].display_name
: myData.node?.template[templateParam]
.display_name}
.name}
</TableCell>
<TableCell className="w-[300px] p-0 text-center text-xs text-foreground ">
{myData.node?.template[templateParam].type ===