We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 079972e + fe5abd0 commit a1e6885Copy full SHA for a1e6885
app/dataTable.tsx
@@ -90,11 +90,13 @@ export function DataTable({ fileUrl }: { fileUrl: string }) {
90
const rows: Array<any> = XLSX.utils.sheet_to_json(sheet, {
91
range: range,
92
raw: false,
93
+ defval: "",
94
});
95
if (!rows.length) return;
96
+ const filteredColumns = Object.keys(rows[0]).filter(colName => !colName.startsWith("__EMPTY"));
97
setColumns(
98
Array.from(
- Object.keys(rows[0]).map((colName) => {
99
+ filteredColumns.map((colName) => {
100
const width = Math.min(
101
Math.max(
102
...rows.map((row) => `${row[colName] || ""}`.length * 8),
0 commit comments