diff --git a/src/helpers/text_helper.ts b/src/helpers/text_helper.ts index 28e9714c2..786d6b11a 100644 --- a/src/helpers/text_helper.ts +++ b/src/helpers/text_helper.ts @@ -22,7 +22,9 @@ export function getDefaultCellHeight( cell: Cell | undefined, colSize: number ) { - if (!cell || !cell.content) return DEFAULT_CELL_HEIGHT; + if (!cell || (!cell.isFormula && !cell.content)) { + return DEFAULT_CELL_HEIGHT; + } const maxWidth = cell.style?.wrapping === "wrap" ? colSize - 2 * MIN_CELL_TEXT_MARGIN : undefined; const numberOfLines = cell.isFormula