fix(sheet): fix code error, the style always is a object (#6289)

This commit is contained in:
VicKun
2025-12-12 15:19:21 +08:00
committed by GitHub
parent e9fc08679f
commit 979d638d93
@@ -1458,7 +1458,7 @@ export class SpreadsheetSkeleton extends SheetSkeleton {
const cell = this.worksheet.getCell(row, col) || this.worksheet.getCellRaw(row, col);
const style = this.worksheet.getComposedCellStyleByCellData(row, col, cell);
if (!cell && !style) return;
if (!cell && Object.keys(style).length === 0) return;
this._setBgStylesCache(row, col, style, options);
this._setBorderStylesCache(row, col, style, options);