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