File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web-console-v2/src/pages/ConnectorConfiguration Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments