chore: fix nodes not in workflow
This commit is contained in:
parent
70f44b990c
commit
408a57afac
@ -845,6 +845,8 @@ class ApplicationSerializer(serializers.Serializer):
|
||||
|
||||
@staticmethod
|
||||
def get_work_flow_model(instance):
|
||||
if 'nodes' not in instance.get('work_flow'):
|
||||
return
|
||||
nodes = instance.get('work_flow')['nodes']
|
||||
for node in nodes:
|
||||
if node['id'] == 'base-node':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user