@@ -11,14 +11,14 @@ import {getColValidator} from './ColumnOrExpression.jsx';
1111import { getColValStats } from '../TableStatsCntlr.js' ;
1212
1313function getToolbarStates ( chartId ) {
14- const { selection, selected , activeTrace= 0 , tablesources, layout, data= [ ] } = getChartData ( chartId ) ;
14+ const { selection, hasSelected , activeTrace= 0 , tablesources, layout, data= [ ] } = getChartData ( chartId ) ;
1515 const { tbl_id} = get ( tablesources , [ activeTrace ] , { } ) ;
1616 const { columns} = get ( getTblById ( tbl_id ) , [ 'tableData' ] ) || { } ;
1717 const hasFilter = tbl_id && ! isEmpty ( get ( getTblById ( tbl_id ) , 'request.filters' ) ) ;
1818 const hasSelection = ! isEmpty ( selection ) ;
1919 const traceNames = data . map ( ( t ) => t . name ) . toString ( ) ;
2020 const activeTraceType = get ( data , `${ activeTrace } .type` ) ;
21- return { hasSelection, hasFilter, activeTrace, activeTraceType, tbl_id, hasSelected : ! ! selected ,
21+ return { hasSelection, hasFilter, activeTrace, activeTraceType, tbl_id, hasSelected,
2222 dragmode : get ( layout , 'dragmode' ) , traceNames, columns} ;
2323}
2424
0 commit comments