fix: reference error fix for oauth
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user