File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ const Table: FC<PipeProp> = ({Context}) => {
2828
2929 const dataExists = ! ! ( results ?. parsed ?. table || [ ] ) . length
3030
31- const queryText = getPanelQueries ( id ) ?. source || ''
3231 const download = ( ) => {
3332 event ( 'CSV Download Initiated' )
34- basic ( queryText ) . promise . then ( response => {
33+ const query = getPanelQueries ( id )
34+ basic ( query ?. source , query ?. scope ) . promise . then ( response => {
3535 if ( response . type !== 'SUCCESS' ) {
3636 return
3737 }
Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ const Visualization: FC<PipeProp> = ({Context}) => {
7474
7575 const dataExists = ! ! ( results ?. parsed ?. table || [ ] ) . length
7676
77- const queryText = getPanelQueries ( id ) ?. source || ''
7877 const download = ( ) => {
7978 event ( 'CSV Download Initiated' )
80- basic ( queryText ) . promise . then ( response => {
79+ const query = getPanelQueries ( id )
80+ basic ( query ?. source , query ?. scope ) . promise . then ( response => {
8181 if ( response . type !== 'SUCCESS' ) {
8282 return
8383 }
You can’t perform that action at this time.
0 commit comments