mirror of
https://github.com/ljcoder2015/obsidian-excel.git
synced 2026-07-22 08:30:28 +00:00
fix: import excel bug
This commit is contained in:
parent
578a3388c6
commit
a1c620d4e2
1 changed files with 4 additions and 3 deletions
|
|
@ -103,9 +103,10 @@ export class ExcelView extends TextFileView {
|
|||
const sheetData = stox(wb);
|
||||
if (sheetData) {
|
||||
sheetData.forEach((sheet) => {
|
||||
if (sheet.rows) {
|
||||
const last = Object.keys(sheet.rows).last() || "100"
|
||||
sheet.rows.len = Math.max(100, parseInt(last) + 20)
|
||||
var sheetAny = sheet as any
|
||||
if (sheetAny.rows) {
|
||||
const last = Object.keys(sheetAny.rows).last() || "100"
|
||||
sheetAny.rows.len = Math.max(100, parseInt(last) + 20)
|
||||
}
|
||||
})
|
||||
this.sheet.loadData(sheetData)
|
||||
|
|
|
|||
Loading…
Reference in a new issue