From f33acd46852748cd726a426d2639eba6a0fe07e9 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 12 Sep 2023 21:28:01 -0300 Subject: [PATCH] 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. --- src/frontend/src/modals/EditNodeModal/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/modals/EditNodeModal/index.tsx b/src/frontend/src/modals/EditNodeModal/index.tsx index e8a9308b7..7f2ce6676 100644 --- a/src/frontend/src/modals/EditNodeModal/index.tsx +++ b/src/frontend/src/modals/EditNodeModal/index.tsx @@ -139,10 +139,10 @@ const EditNodeModal = forwardRef( .map((templateParam, index) => ( - {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} {myData.node?.template[templateParam].type ===