Browse Source

fix: properly handle null for user field meta

pull/7316/head
mertmit 10 months ago
parent
commit
dbf4da0910
  1. 2
      packages/nc-gui/components/smartsheet/header/CellIcon.ts

2
packages/nc-gui/components/smartsheet/header/CellIcon.ts

@ -84,7 +84,7 @@ const renderIcon = (column: ColumnType, abstractType: any) => {
} else if (isGeometry(column)) {
return iconMap.calculator
} else if (isUser(column)) {
if ((column.meta as { is_multi: boolean; notify: boolean }).is_multi) {
if ((column.meta as { is_multi?: boolean; notify?: boolean })?.is_multi) {
return iconMap.phUsers
}
return iconMap.phUser

Loading…
Cancel
Save