diff --git a/frontend/src/components/Oauth2Auth.jsx b/frontend/src/components/Oauth2Auth.jsx index c76a6b59..f175d683 100755 --- a/frontend/src/components/Oauth2Auth.jsx +++ b/frontend/src/components/Oauth2Auth.jsx @@ -364,6 +364,11 @@ const AuthenticationOauth2 = (props) => { } } + let workflowIdNew = "" + if (workflow !== undefined && workflow !== null && workflow.id !== undefined && workflow.id !== null) { + workflowIdNew = workflow.id + } + const appAuthData = { "label": "OAuth2 for " + selectedApp.name, "app": { @@ -374,7 +379,7 @@ const AuthenticationOauth2 = (props) => { }, "fields": parsedFields, "type": "oauth2-app", - "reference_workflow": workflowId, + "reference_workflow": workflowIdNew, } if (setNewAppAuth !== undefined) {