Fixed a couple of SonarQube issues.

This commit is contained in:
Aditya Toshniwal
2022-09-10 14:04:28 +05:30
committed by Akshay Joshi
parent 43022b7aa2
commit b128ba2f57
16 changed files with 175 additions and 145 deletions

View File

@@ -85,7 +85,7 @@ export function AzureCredentials(props) {
}, 1000);
});
}
});
}, {}, _eventBus);
setCloudDBCredInstance(azureCloudDBCredSchema);
}, [props.cloudProvider]);

View File

@@ -10,12 +10,10 @@
import gettext from 'sources/gettext';
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
import { isEmptyString } from 'sources/validators';
import { CloudWizardEventsContext } from './CloudWizard';
import React from 'react';
import pgAdmin from 'sources/pgadmin';
class AzureCredSchema extends BaseUISchema {
constructor(fieldOptions = {}, initValues = {}) {
constructor(fieldOptions = {}, initValues = {}, eventBus) {
super({
oid: null,
auth_type: 'interactive_browser_credential',
@@ -31,7 +29,7 @@ class AzureCredSchema extends BaseUISchema {
...fieldOptions,
};
this.eventBus = React.useContext(CloudWizardEventsContext);
this.eventBus = eventBus;
}
get idAttribute() {