From 8658ffecf94b0eef7c959c9547a92aebcab87fe5 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Tue, 14 May 2024 08:08:41 +0530 Subject: [PATCH] fix: reference error fix for oauth --- frontend/src/components/Oauth2Auth.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {