Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: review changes

Ramesh Mane62906b2e90dc
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts b/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts
index 07e0da9142..8c63cc3dc1 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/utils/canvas.ts
@@ -912,7 +912,7 @@ export function renderMultiLineText(
ctx.font = fontFamily
}
- // Include `firstLineMaxWidth` in the cache key to avoid incorrect caching
+ // Include `firstLineMaxWidth` and `renderAsPreTag` in the cache key to avoid incorrect caching
const cacheKey = `${text}-${fontFamily}-${maxWidth}-${maxLines}-${firstLineMaxWidth ?? 'default'}-${
renderAsPreTag ? 'pre' : 'plain'
}`