🐛 fix(base.py): skip values with show == False and key != "code" when iterating over template_dict to improve filtering logic
This commit is contained in:
parent
c207f0aa4b
commit
bc57e48bd8
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@ class Vertex:
|
|||
params[param_key] = edge.source
|
||||
|
||||
for key, value in template_dict.items():
|
||||
if key == "_type" or not value.get("show"):
|
||||
# Skip _type and any value that has show == False and is not code
|
||||
# If we don't want to show code but we want to use it
|
||||
if key == "_type" or (not value.get("show") and key != "code"):
|
||||
continue
|
||||
# If the type is not transformable to a python base class
|
||||
# then we need to get the edge that connects to this node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue