Fix autocolumn icons

This commit is contained in:
Andrew Kingston 2025-03-04 16:05:21 +00:00
parent f95760fad0
commit 38ad59deaa
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ import { helpers } from "@budibase/shared-core"
import { TypeIconMap } from "../constants"
export const getColumnIcon = column => {
if (column.schema.icon) {
// For some reason we have remix icons saved under this property sometimes,
// so we must ignore those as they are invalid spectrum icons
if (column.schema.icon && !column.schema.icon.startsWith("ri-")) {
return column.schema.icon
}
if (column.calculationType) {