Browse Source

fix(nc-gui): allow user to change cover image value if cover image col is deleted

pull/8869/head
Ramesh Mane 5 months ago
parent
commit
40666334af
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

4
packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

@ -167,8 +167,8 @@ const coverImageColumnId = computed({
// check if `fk_cover_image_col_id` is in `coverOptions` // check if `fk_cover_image_col_id` is in `coverOptions`
// e.g. in share view, users may not share the cover image column // e.g. in share view, users may not share the cover image column
if (coverOptions.value?.find((o) => o.value === fk_cover_image_col_id)) return fk_cover_image_col_id if (coverOptions.value?.find((o) => o.value === fk_cover_image_col_id)) return fk_cover_image_col_id
// set to `No Image` // set to `No Image` if fk_cover_image_col_id is null else undefiend (This will help to change value to no image for user)
return null return fk_cover_image_col_id === null ? null : undefined
}, },
set: async (val) => { set: async (val) => {
if (val !== coverImageColumnId.value) { if (val !== coverImageColumnId.value) {

Loading…
Cancel
Save