From 62c522e3f0b82ea655fd87ffad6cd057b932a036 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 19 Sep 2025 20:39:27 +0000 Subject: [PATCH] fix: fix too strict aggrid coldef validation --- .../lib/components/apps/components/display/table/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/apps/components/display/table/utils.ts b/frontend/src/lib/components/apps/components/display/table/utils.ts index 3f84b66db5..2cfb668b83 100644 --- a/frontend/src/lib/components/apps/components/display/table/utils.ts +++ b/frontend/src/lib/components/apps/components/display/table/utils.ts @@ -27,9 +27,9 @@ export abstract class AbstractCellRenderer implements ICellRendererComp { eGui: any protected component: | { - refresh: (params: ICellRendererParams) => void - destroy: () => void - } + refresh: (params: ICellRendererParams) => void + destroy: () => void + } | undefined constructor(parentElement = 'span') { // create empty span (or other element) to place svelte component in @@ -275,7 +275,7 @@ export function validateColumnDefs(columnDefs: WindmillColumnDef[]): { } // Check if 'field' property exists and is a non-empty string - if (noField && !(colDef.children && Array.isArray(colDef.children))) { + if (noField && !(colDef.children && Array.isArray(colDef.children)) && !colDef.cellRenderer) { isValid = false errors.push( `Column at index ${index} is missing a valid 'field' property nor having any children.`