Ensure BBUI table component ignores numeric widths that are invalid

This commit is contained in:
Andrew Kingston 2023-10-20 09:08:45 +01:00
parent 525898a93c
commit d0b71ada08
1 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,13 @@
name: fieldName,
}
}
// Delete numeric only widths as these are grid widths and should be
// ignored
let width = fixedSchema[fieldName].width
if (width != null && `${width}`.trim().match(/^[0-9]+$/)) {
delete fixedSchema[fieldName].width
}
})
return fixedSchema
}