Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Jan 14, 2025
1 parent 82c7341 commit fb8c20d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions workbench
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def create():
node = link_field.create(
config, field_definitions, node, row, custom_field
)
# name fields.

# Name fields.
elif field_definitions[custom_field]["field_type"] == "name":
name_field = workbench_fields.NameField()
node = name_field.create(
Expand Down Expand Up @@ -845,6 +846,8 @@ def update():
custom_field,
node_field_values[custom_field],
)

# Name fields.
elif field_definitions[custom_field]["field_type"] == "name":
name_field = workbench_fields.NameField()
node = name_field.update(
Expand Down Expand Up @@ -3319,8 +3322,7 @@ def update_terms():
term_field_values[custom_field],
)


# For non-entity reference and non-typed relation fields (text, etc.).
# For non-entity reference and non-typed relation fields (text, etc.).
else:
simple_field = workbench_fields.SimpleField()
term = simple_field.update(
Expand Down

0 comments on commit fb8c20d

Please sign in to comment.