fix(EditNodeModal): update the display of the node type in the modal header to use the display name instead of the type property for better clarity and accuracy

This commit is contained in:
anovazzi1 2023-09-14 20:58:31 -03:00
commit b65b3ce89a

View file

@ -82,7 +82,7 @@ const EditNodeModal = forwardRef(
<BaseModal size="large-h-full" open={modalOpen} setOpen={setModalOpen}>
<BaseModal.Trigger>{children}</BaseModal.Trigger>
<BaseModal.Header description={myData.node?.description!}>
<span className="pr-2">{myData.type}</span>
<span className="pr-2">{myData.node?.display_name}</span>
<Badge variant="secondary">ID: {myData.id}</Badge>
</BaseModal.Header>
<BaseModal.Content>