From 464524500cf81bd118b9241215dca6875f7672ec Mon Sep 17 00:00:00 2001 From: Salihu Date: Thu, 27 Aug 2026 22:31:32 +0100 Subject: [PATCH] revert unintended changes --- apps/server/src/integrations/import/utils/table-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/integrations/import/utils/table-utils.ts b/apps/server/src/integrations/import/utils/table-utils.ts index bd271d322..8b5240a0e 100644 --- a/apps/server/src/integrations/import/utils/table-utils.ts +++ b/apps/server/src/integrations/import/utils/table-utils.ts @@ -85,7 +85,7 @@ export function normalizeTableColumnWidths( firstRow.children('td, th').each(function () { count += parseInt($(this).attr('colspan') || '1', 10) || 1; }); - if (count < 6) return; + if (count === 0) return; colWidths = new Array(count).fill(DEFAULT_IMPORT_COL_WIDTH_PX); } @@ -100,7 +100,7 @@ export function normalizeTableColumnWidths( const slice = colWidths.slice(col, col + colspan); col += colspan; if (slice.length === 0 || slice.every((w) => w === null)) return; - const values = slice.map((w) => w ?? DEFAULT_IMPORT_COL_WIDTH_PX); + const values = slice.map((w) => (w == null ? 100 : w)); cell.attr('colwidth', values.join(',')); }); });