Browse Source

fix(nc-gui): multiselect if null throws error

pull/7673/head
DarkPhoenix2704 9 months ago
parent
commit
3bbcd657d7
  1. 5
      packages/nc-gui/components/smartsheet/calendar/Cell.vue

5
packages/nc-gui/components/smartsheet/calendar/Cell.vue

@ -59,6 +59,9 @@ const getCheckBoxValue = (modelValue: boolean | string | number | '0' | '1') =>
}
const getMultiSelectValue = (modelValue: any, col: ColumnType): string => {
if (!modelValue) {
return ''
}
return modelValue
? Array.isArray(modelValue)
? modelValue.join(', ')
@ -264,7 +267,7 @@ const getAttachmentValue = (modelValue: string | null | number | Array<any>) =>
const parseValue = (value: any, col: ColumnType): string => {
if (!col) {
return undefined
return ''
}
if (isGeoData(col)) {
const [latitude, longitude] = ((value as string) || '').split(';')

Loading…
Cancel
Save