Skip to content

Commit 1692b29

Browse files
Merge pull request #142 from Sanketika-Obsrv/ux-refactoring
#OBS-I334 - help text missing for batch connector
2 parents ca0ea89 + bb1960e commit 1692b29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web-console-v2/src/pages/ConnectorConfiguration/ConnectorConfiguration.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const ConnectorConfiguration: React.FC = () => {
136136
const apiSchema = connectorData.ui_spec;
137137
if (apiSchema) {
138138
setSchema(transformSchema(apiSchema));
139-
setHelpSectionContent(apiSchema);
139+
setHelpSectionContent(apiSchema, _.toLower(connectorData.category));
140140
setErrorMessage(null);
141141
setFormErrors([])
142142
setFormData(_.get(dataset.data.connectors_config[0], 'connector_config'));
@@ -151,7 +151,7 @@ const ConnectorConfiguration: React.FC = () => {
151151
const apiSchema = readConnector.data.ui_spec;
152152
if (apiSchema) {
153153
setSchema(transformSchema(apiSchema));
154-
setHelpSectionContent(apiSchema);
154+
setHelpSectionContent(apiSchema, _.toLower(readConnector.data.category));
155155
setErrorMessage(null);
156156
} else {
157157
setErrorMessage('uiSchema for this connector type not available. Please contact administrator');
@@ -174,7 +174,7 @@ const ConnectorConfiguration: React.FC = () => {
174174
}
175175
};
176176

177-
const setHelpSectionContent = (schema: any): string[] => {
177+
const setHelpSectionContent = (schema: any, connectorType: string): string[] => {
178178

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

0 commit comments

Comments
 (0)