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:
parent
9d510e3e4b
commit
f33acd4685
1 changed files with 3 additions and 3 deletions
|
|
@ -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 ===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue