mirror of
https://github.com/dream-num/univer.git
synced 2026-08-28 23:01:30 +08:00
fix(sheet): fix code error, the style always is a object (#6289)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user