update
This commit is contained in:
@@ -56,7 +56,6 @@ function GraphBase(props) {
|
||||
});
|
||||
}
|
||||
if (dateOptions) {
|
||||
console.log('[Graph Base] ', dateOptions, defaultSelect)
|
||||
dto = dateOptions.map((item) => (
|
||||
<Radio.Button value={item} key={item} className="radio-group__item">
|
||||
{item}
|
||||
@@ -108,8 +107,9 @@ function GraphBase(props) {
|
||||
</div>
|
||||
)}
|
||||
{dateOptions && (
|
||||
// defaultValue={defaultSelect || dateOptions[0]}
|
||||
<Radio.Group
|
||||
defaultValue={defaultSelect || dateOptions[0]}
|
||||
value={defaultSelect || dateOptions[0]}
|
||||
buttonStyle="solid"
|
||||
className={cls.graphBaseDate + ' ' + cls.radioGroup}
|
||||
onChange={({ target }) => onDateChange(target.value)}
|
||||
|
||||
Reference in New Issue
Block a user