Skip to content

Commit 0883d33

Browse files
author
Aleksei Kolosov
committed
[fix] sheet format pr sequence
1 parent 5cd8608 commit 0883d33

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
type: "convert",
3131
data: JSON.parse(dataArea.value),
3232
// path relative to js file of worker
33-
// wasmPath: "wasm/xlsx_import_bg.wasm"
33+
wasmPath: "wasm/xlsx_import_bg.wasm"
3434
// if not provided, will load wasm file from CDN
3535
// https://cdn.dhtmlx.com/libs/json2excel/1.0/lib.wasm
3636
});

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,11 @@ fn get_sheet_data(cells: Vec<Vec<InnerCell>>, columns: &Option<Vec<Option<Column
459459
}
460460
sheet_data.add_children(sheet_data_rows);
461461

462-
let mut worksheet_children = vec![sheet_views];
462+
let mut worksheet_children = vec![sheet_views, sheet_format_pr];
463463
if cols_children.len() > 0{
464464
cols.add_children(cols_children);
465465
worksheet_children.push(cols);
466466
}
467-
worksheet_children.push(sheet_format_pr);
468467
worksheet_children.push(sheet_data);
469468

470469
match merged {

wasm/xlsx_import_bg.wasm

-84 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)