Skip to content

Commit

Permalink
null checks for getStyleByCell
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchit3008 authored Aug 6, 2024
1 parent 4b9dc3f commit 46d9e66
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 46d9e66

Please sign in to comment.