From 4e111530cf2f11da6df13ed7918efe77c829249d Mon Sep 17 00:00:00 2001 From: algojogacor Date: Thu, 21 May 2026 12:10:26 +0700 Subject: [PATCH] fix: Move expires_in field after scope in OAuth2 datasource form --- .../RestAPIDatasourceForm.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx b/app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx index 341cf1dc5814..9be32f8cd32a 100644 --- a/app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx +++ b/app/client/src/pages/Editor/DataSourceEditor/RestAPIDatasourceForm.tsx @@ -683,6 +683,16 @@ class DatasourceRestAPIEditor extends React.Component { isRequired: false, })} + + {this.renderInputTextControlViaFormControl({ + configProperty: "authentication.expiresIn", + label: "Authorization expires in (seconds)", + placeholderText: "3600", + dataType: "NUMBER", + encrypted: false, + isRequired: false, + })} + @@ -870,16 +880,6 @@ class DatasourceRestAPIEditor extends React.Component { false, )} - - {this.renderInputTextControlViaFormControl({ - configProperty: "authentication.expiresIn", - label: "Authorization expires in (seconds)", - placeholderText: "3600", - dataType: "NUMBER", - encrypted: false, - isRequired: false, - })} - {!_.get(formData.authentication, "isAuthorizationHeader", true) && this.renderOauth2CommonAdvanced()}