Skip to content

Commit

Permalink
fix: ensure nodeid is known before looking up datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Jun 15, 2024
1 parent 7bf7869 commit 7295868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def get_documents_to_index(self, fetchTiles=True, datatype_factory=None, node_da

for tile in document["tiles"]:
for nodeid, nodevalue in tile.data.items():
if nodevalue != "" and nodevalue != [] and nodevalue != {} and nodevalue is not None:
if nodevalue != "" and nodevalue != [] and nodevalue != {} and nodevalue is not None and nodeid in node_datatypes:
datatype = node_datatypes[nodeid]
datatype_instance = datatype_factory.get_instance(datatype)
datatype_instance.append_to_document(document, nodevalue, nodeid, tile)
Expand Down

0 comments on commit 7295868

Please sign in to comment.