mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
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