diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index 4b719ce67..f2acab587 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -453,7 +453,7 @@ Vue.component('tt-table', { for (const cell in ws) { if (cell.startsWith('!')) continue; // Skip non-cell properties like '!ref' const cellValue = ws[cell].v; - if (cellValue.toString().includes('\n')) { + if (cellValue?.toString().includes('\n')) { // console.log('Found newline in cell:', cell, cellValue); if (!ws[cell].s) ws[cell].s = {}; ws[cell].s.alignment = {wrapText: true, vertical: 'center'};