fix: reference error fix for oauth

This commit is contained in:
Aditya
2024-05-14 08:08:41 +05:30
parent 06ac921aa8
commit 8658ffecf9
+6 -1
View File
@@ -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) {