|
|
@@ -20,7 +20,7 @@ class Toolbar extends React.Component {
|
|
|
const filters = chartDesigner.filters;
|
|
|
dispatch({ type: 'chartDesigner/changeField', name: 'filters', value: filters.map( f => {
|
|
|
if(+f.key === +key) {
|
|
|
- f = { ...f, using: !f.using }
|
|
|
+ f = { ...f, using: f.type ? !f.using : false}
|
|
|
}
|
|
|
return f;
|
|
|
}), autoRefresh });
|
|
|
@@ -96,7 +96,7 @@ class Toolbar extends React.Component {
|
|
|
return {
|
|
|
key: f.key,
|
|
|
label: this.createFilterLabel(f),
|
|
|
- using: f.using
|
|
|
+ using: f.type ? f.using : false
|
|
|
}
|
|
|
});
|
|
|
|