From ae863a6e16efa2b7c8114155a7dd4eb04aede625 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 10 Jun 2024 08:00:58 +0100 Subject: [PATCH] Only override grid column widths in table block when they are defined --- packages/client/src/components/app/GridBlock.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/app/GridBlock.svelte b/packages/client/src/components/app/GridBlock.svelte index dbd651b533..7502dc1ba8 100644 --- a/packages/client/src/components/app/GridBlock.svelte +++ b/packages/client/src/components/app/GridBlock.svelte @@ -90,9 +90,11 @@ columns.forEach((column, idx) => { overrides[column.field] = { displayName: column.label, - width: column.width, order: idx, } + if (column.width) { + overrides[column.field].width = column.width + } }) return overrides }