@@ -145,7 +145,6 @@ const PipelineBuilder = ({
145
145
labelColors,
146
146
classMap,
147
147
selectLabelValuesColors,
148
- selectLabelValuesByName,
149
148
onCloseAlertBuilder,
150
149
onCreateNewStep,
151
150
onDeleteStep,
@@ -802,11 +801,11 @@ const PipelineBuilder = ({
802
801
[ selectedSteps , activeEditStep , pipelineStatus , isOptimizationRunning ] ,
803
802
) ;
804
803
805
- const CardInformationIcon = ( ) => (
804
+ const CardInformationIcon = ( { step } ) => (
806
805
< Tooltip title = { t ( "flow-builder.card-step-help-info" ) } placement = "top" >
807
806
< Link
808
807
className = { `${ classes . cardInfoIcon } ` }
809
- onClick = { ( _e ) => handleStepInfo ( pipelineSettings ) }
808
+ onClick = { ( _e ) => handleStepInfo ( step ) }
810
809
data-test = "info-link"
811
810
>
812
811
< InfoOutlinedIcon style = { { color : theme . colorEditIcons } } fontSize = "xsmall" />
@@ -900,7 +899,7 @@ const PipelineBuilder = ({
900
899
< >
901
900
< Box display = { "flex" } alignItems = { "center" } >
902
901
< span > { step . name } </ span >
903
- < CardInformationIcon />
902
+ < CardInformationIcon step = { step } />
904
903
</ Box >
905
904
{ [
906
905
PIPELINE_STEP_TYPES . CLASSIFIER ,
@@ -925,7 +924,7 @@ const PipelineBuilder = ({
925
924
FunctionSubType : step . name ,
926
925
} ) }
927
926
</ span >
928
- < CardInformationIcon />
927
+ < CardInformationIcon step = { step } />
929
928
</ Box >
930
929
</ >
931
930
) }
@@ -1124,13 +1123,13 @@ const PipelineBuilder = ({
1124
1123
isOpen = { isOpenDialogDistribution }
1125
1124
labelColors = { labelColors }
1126
1125
data = { cacheDistributionData ?. data || { } }
1127
- featureSummary = { featureStatsData . feature_summary }
1128
- featureStatistics = { featureStatsData . feature_statistics }
1129
- featureVectorData = { featureStatsData . feature_data }
1130
- features = { _ . keys ( featureStatsData . feature_data ) }
1131
- labelColumn = { featureStatsData . label_column }
1126
+ featureVectorData = { featureStatsData ?. featureVectorData || { } }
1127
+ featureStatistics = { featureStatsData ?. featureStatistics || { } }
1128
+ featureSummary = { featureStatsData ?. featureSummary || { } }
1129
+ features = { featureStatsData ?. featureNames || { } }
1130
+ labelColumn = { featureStatsData ?. labelColumn || "" }
1131
+ labelValues = { featureStatsData ?. labelValues || [ ] }
1132
1132
selectLabelValuesColors = { selectLabelValuesColors }
1133
- labelValues = { selectLabelValuesByName ( featureStatsData . label_column || "Label" ) }
1134
1133
classMap = { classMap }
1135
1134
classes = { classes }
1136
1135
isLoadFeatures = { cacheDistributionData ?. step ?. isLoadFeatures }
0 commit comments