@bento-core/table 1.0.1-icdc.1 → 1.0.1-icdc.2

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.
@@ -53,11 +53,14 @@ const DownloadButton = _ref => {
53
53
  (0, _downloadTable.downloadJson)(result, table, downloadFileName);
54
54
  }
55
55
  const downloadTableCSV = (0, _react.useCallback)(() => {
56
+ // custom download from bento app
56
57
  if (downloadTable) {
57
- downloadTable();
58
+ downloadTable(queryVariables);
58
59
  } else if (!downloadTable && !server) {
60
+ // download client table
59
61
  (0, _downloadTable.downloadJson)(rows, table, downloadFileName);
60
62
  } else {
63
+ // donwload server table
61
64
  downloadSCSVFile();
62
65
  }
63
66
  }, [queryVariables]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-icdc.1",
3
+ "version": "1.0.1-icdc.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -49,11 +49,14 @@ const DownloadButton = ({
49
49
  }
50
50
 
51
51
  const downloadTableCSV = useCallback(() => {
52
+ // custom download from bento app
52
53
  if (downloadTable) {
53
- downloadTable();
54
+ downloadTable(queryVariables);
54
55
  } else if (!downloadTable && !server) {
56
+ // download client table
55
57
  downloadJson(rows, table, downloadFileName);
56
58
  } else {
59
+ // donwload server table
57
60
  downloadSCSVFile();
58
61
  }
59
62
  }, [queryVariables]);