Skip to content

Commit b3b06c3

Browse files
committed
Tabble assignining bugfix
1 parent 78fa639 commit b3b06c3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

studio/src/hooks/useTableGetJSON.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function useTableGetJSON(): (row: number) => { [key: string]: any } {
1212
const result: any = {};
1313
for (let i = 0; i < rowData.length; i++) {
1414
const value = rowData[i];
15+
1516
if (value === '') continue;
1617
const keys = getKeysForColumn(ctx.activeSheet, i, sheet, ctx.rowTypes);
1718
if (keys.length === 0) return {};
@@ -23,14 +24,8 @@ export function useTableGetJSON(): (row: number) => { [key: string]: any } {
2324
return getJSON;
2425
}
2526

26-
function getKeysForColumn(
27-
sheet: number,
28-
column: number,
29-
contents: string[][],
30-
rowTypes: string[][]
31-
) {
27+
function getKeysForColumn(sheet: number, column: number, table: string[][], rowTypes: string[][]) {
3228
const keys: string[] = [];
33-
const table = contents[sheet];
3429

3530
let k: string;
3631
for (let i = 0; i < table.length; i++) {

0 commit comments

Comments
 (0)