Skip to content

Commit

Permalink
Merge pull request #142 from Sanketika-Obsrv/ux-refactoring
Browse files Browse the repository at this point in the history
#OBS-I334 - help text missing for batch connector
  • Loading branch information
HarishGangula authored Nov 13, 2024
2 parents ca0ea89 + bb1960e commit 1692b29
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const ConnectorConfiguration: React.FC = () => {
const apiSchema = connectorData.ui_spec;
if (apiSchema) {
setSchema(transformSchema(apiSchema));
setHelpSectionContent(apiSchema);
setHelpSectionContent(apiSchema, _.toLower(connectorData.category));
setErrorMessage(null);
setFormErrors([])
setFormData(_.get(dataset.data.connectors_config[0], 'connector_config'));
Expand All @@ -151,7 +151,7 @@ const ConnectorConfiguration: React.FC = () => {
const apiSchema = readConnector.data.ui_spec;
if (apiSchema) {
setSchema(transformSchema(apiSchema));
setHelpSectionContent(apiSchema);
setHelpSectionContent(apiSchema, _.toLower(readConnector.data.category));
setErrorMessage(null);
} else {
setErrorMessage('uiSchema for this connector type not available. Please contact administrator');
Expand All @@ -174,7 +174,7 @@ const ConnectorConfiguration: React.FC = () => {
}
};

const setHelpSectionContent = (schema: any): string[] => {
const setHelpSectionContent = (schema: any, connectorType: string): string[] => {

const combinedHelp: string[] = [];
if (schema?.properties) {
Expand Down

0 comments on commit 1692b29

Please sign in to comment.