Skip to content

Commit

Permalink
chore: fix nodes not in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Sep 6, 2024
1 parent 70f44b9 commit 408a57a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/application/serializers/application_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,8 @@ def save_other_config(self, data):

@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':
Expand Down

0 comments on commit 408a57a

Please sign in to comment.