public inbox for [email protected]  
help / color / mirror / Atom feed
From: Khushboo Vashi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch] - Linter Fixes
Date: Tue, 26 Apr 2022 17:33:31 +0530
Message-ID: <CAFOhELc3D2NYwBTk9tJam8_X3DXiHWXkKtPqGjJ4mhOGxrBxqw@mail.gmail.com> (raw)

Hi,

Please find the attached patch to fix the linter issue.

Thanks,
Khushboo


Attachments:

  [application/octet-stream] linter_fixes.patch (1.8K, 3-linter_fixes.patch)
  download | inline diff:
diff --git a/web/pgadmin/misc/cloud/static/js/cloud_components.jsx b/web/pgadmin/misc/cloud/static/js/cloud_components.jsx
index 70fccdb0d..8b80ee2b8 100644
--- a/web/pgadmin/misc/cloud/static/js/cloud_components.jsx
+++ b/web/pgadmin/misc/cloud/static/js/cloud_components.jsx
@@ -70,7 +70,7 @@ export function FinalSummary(props) {
 
   if (props.cloudProvider == 'biganimal') {
     summary = getBigAnimalSummary(props.cloudProvider, props.instanceData, props.databaseData);
-    summaryHeader[1] = 'Version Details'
+    summaryHeader[1] = 'Version Details';
   } else {
     summary = getAWSSummary(props.cloudProvider, props.instanceData, props.databaseData);
   }
diff --git a/web/pgadmin/misc/cloud/static/js/cloud_db_details_schema.ui.js b/web/pgadmin/misc/cloud/static/js/cloud_db_details_schema.ui.js
index 9c4e903d3..ef906b5f5 100644
--- a/web/pgadmin/misc/cloud/static/js/cloud_db_details_schema.ui.js
+++ b/web/pgadmin/misc/cloud/static/js/cloud_db_details_schema.ui.js
@@ -496,13 +496,13 @@ class BigAnimalNetworkSchema extends BaseUISchema {
           return true;
         },
         depChange: (state, source)=> {
-           if(source[0] == 'cloud_type') {
-             if (state.cloud_type == 'public') {
-               return {public_ip: obj.initValues.hostIP};
-             } else {
-               return {public_ip: ''};
-             }
-           }
+          if(source[0] == 'cloud_type') {
+            if (state.cloud_type == 'public') {
+              return {public_ip: obj.initValues.hostIP};
+            } else {
+              return {public_ip: ''};
+            }
+          }
         },
         helpMessage: gettext('IP Address range for permitting the inbound traffic. Ex: 127.0.0.1/32, add multiple ip addresses/ranges by comma separated. Leave it blank for 0.0.0.0/0'),
       },


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin4][Patch] - Linter Fixes
  In-Reply-To: <CAFOhELc3D2NYwBTk9tJam8_X3DXiHWXkKtPqGjJ4mhOGxrBxqw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox