From 0cea8b7b007f6b6e530bafe7fdb841ccf9393f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Klein?= Date: Fri, 22 Dec 2023 21:28:51 +0100 Subject: [PATCH] Fix addGridLayout bug when this plugin is combined with addHiddenColumns plugin #179 --- src/lib/plugins/addGridLayout.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/lib/plugins/addGridLayout.ts b/src/lib/plugins/addGridLayout.ts index 9a11997..c2aaf26 100644 --- a/src/lib/plugins/addGridLayout.ts +++ b/src/lib/plugins/addGridLayout.ts @@ -63,14 +63,11 @@ export const addGridLayout = return { attrs }; }, 'thead.tr.th': (cell) => { - const attrs = derived([], () => { - return { - style: { - 'grid-column': `${cell.colstart + 1} / span ${cell.colspan}`, - }, - }; - }); - return { attrs }; + return { + style: { + 'grid-column': `${cell.colstart + 1} / span ${cell.colspan}`, + }, + }; }, 'tbody.tr': () => { const attrs = derived([], () => {