From c537a8df335ed914bd357a5ae94e3f4fa24d9bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 4 Feb 2026 15:29:51 +0100 Subject: [PATCH] Test if width is set before testing if it ends width '%' Closes #14578 --- sao/src/view/tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index a8a935b0e1..c10a082eec 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -1070,7 +1070,7 @@ } else { width = column.col.data('default-width'); } - if (width.endsWith('%')) { + if (width && width.endsWith('%')) { width = parseInt(width.slice(0, -1), 10) / 100; if (column.attributes.expand) { width /= parseInt(column.attributes.expand, 10);