mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 16:05:43 +00:00
fix: fix too strict aggrid coldef validation
This commit is contained in:
@@ -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.`
|
||||
|
||||
Reference in New Issue
Block a user