Skip to content

Commit

Permalink
only return config field for solids (#8278)
Browse files Browse the repository at this point in the history
  • Loading branch information
clairelin135 authored and johannkm committed Jun 9, 2022
1 parent 8f9294a commit 2a8d755
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ def resolve_assetMaterializations(
# TODO: Prob want a more efficient way of resolving this
def resolve_configField(self, _graphene_info) -> Optional[GrapheneConfigTypeField]:
op = self.get_op_definition()
return op.resolve_config_field(_graphene_info) if op else None
return (
op.resolve_config_field(_graphene_info)
if op and isinstance(op, GrapheneSolidDefinition)
else None
)

def resolve_computeKind(self, _graphene_info) -> Optional[str]:
return self._external_asset_node.compute_kind
Expand Down

0 comments on commit 2a8d755

Please sign in to comment.