Skip to content

Commit

Permalink
Merge pull request #582 from ruilisi/580-单元格处于编辑状态时右键菜单插入行列代码报错页面白屏
Browse files Browse the repository at this point in the history
null checks for getStyleByCell
  • Loading branch information
sanchit3008 authored Aug 6, 2024
2 parents 4b9dc3f + 46d9e66 commit de46824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/modules/cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ export function getStyleByCell(
const cf_compute = getComputeMap(ctx);
const checksCF = checkCF(r, c, cf_compute);

const cell = d[r][c];
const cell = d?.[r]?.[c];
if (!cell) return {};

const isInline = isInlineStringCell(cell);
Expand Down

0 comments on commit de46824

Please sign in to comment.