[ML] Adds isRequired where applicable to timeseries_chart props. (#26880)
Adds isRequired to timeseries_chart props to match the minimum required props necessary to render the component without errors reflected in the Minimal initialization test.
This commit is contained in:
parent
d739c4efc8
commit
6c44fed1e2
|
@ -79,19 +79,19 @@ export class TimeseriesChart extends React.Component {
|
|||
contextAggregationInterval: PropTypes.object,
|
||||
contextChartData: PropTypes.array,
|
||||
contextForecastData: PropTypes.array,
|
||||
contextChartSelected: PropTypes.func,
|
||||
contextChartSelected: PropTypes.func.isRequired,
|
||||
detectorIndex: PropTypes.string,
|
||||
focusAggregationInterval: PropTypes.object,
|
||||
focusChartData: PropTypes.array,
|
||||
focusForecastData: PropTypes.array,
|
||||
modelPlotEnabled: PropTypes.bool,
|
||||
renderFocusChartOnly: PropTypes.bool,
|
||||
modelPlotEnabled: PropTypes.bool.isRequired,
|
||||
renderFocusChartOnly: PropTypes.bool.isRequired,
|
||||
selectedJob: PropTypes.object,
|
||||
showForecast: PropTypes.bool,
|
||||
showModelBounds: PropTypes.bool,
|
||||
svgWidth: PropTypes.number,
|
||||
showForecast: PropTypes.bool.isRequired,
|
||||
showModelBounds: PropTypes.bool.isRequired,
|
||||
svgWidth: PropTypes.number.isRequired,
|
||||
swimlaneData: PropTypes.array,
|
||||
timefilter: PropTypes.object,
|
||||
timefilter: PropTypes.object.isRequired,
|
||||
zoomFrom: PropTypes.object,
|
||||
zoomTo: PropTypes.object
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ function getTimeseriesChartPropsMock() {
|
|||
return {
|
||||
contextChartSelected: jest.fn(),
|
||||
modelPlotEnabled: false,
|
||||
renderFocusChartOnly: false,
|
||||
showForecast: true,
|
||||
showModelBounds: true,
|
||||
svgWidth: 1600,
|
||||
|
|
Loading…
Reference in a new issue