sag_components 2.0.0-beta90 → 2.0.0-beta91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -31375,7 +31375,7 @@ const SegmentedButton = props => {
31375
31375
  const {
31376
31376
  className,
31377
31377
  name,
31378
- options,
31378
+ options = [],
31379
31379
  width,
31380
31380
  height,
31381
31381
  controlradius,
@@ -31963,7 +31963,7 @@ const SingleChart = props => {
31963
31963
 
31964
31964
  const InnerBar = props => {
31965
31965
  const {
31966
- brushInnerBarData,
31966
+ brushInnerBarData = [],
31967
31967
  color,
31968
31968
  backgroundColor,
31969
31969
  hideBrush
@@ -32164,21 +32164,21 @@ const BrushChart = props => {
32164
32164
  hideSecondBrush,
32165
32165
  hideThirdBrush,
32166
32166
  hideLastBrush,
32167
- segmentedbuttonOptions,
32167
+ segmentedbuttonOptions = [],
32168
32168
  title,
32169
32169
  lineChartColor,
32170
32170
  innerChartColor,
32171
32171
  barChartColor
32172
32172
  } = props;
32173
- const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions[0]);
32173
+ const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions && segmentedbuttonOptions[0] || "");
32174
32174
  return /*#__PURE__*/React$1.createElement(Container, {
32175
32175
  height: height,
32176
32176
  width: width
32177
32177
  }, /*#__PURE__*/React$1.createElement(Title$5, null, title), /*#__PURE__*/React$1.createElement(SegmentedContainer, {
32178
32178
  gap: "8px",
32179
- options: segmentedbuttonOptions.map(value => ({
32179
+ options: segmentedbuttonOptions ? segmentedbuttonOptions.map(value => ({
32180
32180
  value
32181
- })),
32181
+ })) : [],
32182
32182
  onClick: _ref => {
32183
32183
  let {
32184
32184
  value