mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed a couple of SonarQube issues.
This commit is contained in:
committed by
Akshay Joshi
parent
43022b7aa2
commit
b128ba2f57
@@ -85,7 +85,7 @@ export function AzureCredentials(props) {
|
||||
}, 1000);
|
||||
});
|
||||
}
|
||||
});
|
||||
}, {}, _eventBus);
|
||||
setCloudDBCredInstance(azureCloudDBCredSchema);
|
||||
}, [props.cloudProvider]);
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user