@adaptabletools/adaptable-plugin-nocode-aggrid 23.0.4-canary.0 → 23.0.5-canary.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-plugin-nocode-aggrid",
3
- "version": "23.0.4-canary.0",
3
+ "version": "23.0.5-canary.0",
4
4
  "description": "",
5
5
  "homepage": "http://www.adaptabletools.com/",
6
6
  "author": {
package/src/index.js CHANGED
@@ -29,7 +29,6 @@ export const readJSONFile = async (file, toJSON) => {
29
29
  });
30
30
  };
31
31
  export const readExcelFile = (file) => {
32
- /* Boilerplate to set up FileReader */
33
32
  const reader = new FileReader();
34
33
  const asBinary = !!reader.readAsBinaryString;
35
34
  return new Promise((resolve, reject) => {
@@ -38,10 +37,8 @@ export const readExcelFile = (file) => {
38
37
  type: asBinary ? 'binary' : 'array',
39
38
  cellDates: true,
40
39
  });
41
- // Get first worksheet
42
40
  const wsname = wb.SheetNames[0];
43
41
  const ws = wb.Sheets[wsname];
44
- // Convert array of arrays
45
42
  const data = XLSXUtils.sheet_to_json(ws, { header: 1 });
46
43
  resolve(data);
47
44
  };
@@ -94,9 +91,6 @@ class NoCodePlugin extends AdaptablePlugin {
94
91
  Object.keys(newAdaptableOptions).forEach((key) => {
95
92
  adaptableOptions[key] = newAdaptableOptions[key];
96
93
  });
97
- /**
98
- * Update the gridOptions with the new gridOptions
99
- */
100
94
  if (agGridOptions.gridOptions) {
101
95
  Object.assign(agGridOptions.gridOptions, gridOptions);
102
96
  }