diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index d48defb626..d277e86503 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -201,6 +201,7 @@ declare module '@vue/runtime-core' { MdiLogin: typeof import('~icons/mdi/login')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] MdiMagnify: typeof import('~icons/mdi/magnify')['default'] + MdiMapMarker: typeof import('~icons/mdi/map-marker')['default'] MdiMenu: typeof import('~icons/mdi/menu')['default'] MdiMenuDown: typeof import('~icons/mdi/menu-down')['default'] MdiMenuIcon: typeof import('~icons/mdi/menu-icon')['default'] diff --git a/packages/nc-gui/components/smartsheet/column/BarcodeOptions.vue b/packages/nc-gui/components/smartsheet/column/BarcodeOptions.vue index 0e59f71705..89b46b0b0c 100644 --- a/packages/nc-gui/components/smartsheet/column/BarcodeOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/BarcodeOptions.vue @@ -62,7 +62,7 @@ onMounted(() => { watch(columnsAllowedAsBarcodeValue, (newColumnsAllowedAsBarcodeValue) => { if (vModel.value.fk_barcode_value_column_id == null) { - vModel.value.fk_barcode_value_column_id = newColumnsAllowedAsBarcodeValue?.[0].value + vModel.value.fk_barcode_value_column_id = newColumnsAllowedAsBarcodeValue?.[0]?.value } }) @@ -71,6 +71,8 @@ setAdditionalValidations({ barcode_format: [{ required: true, message: 'Required' }], }) +const showBarcodeValueColumnInfoIcon = computed(() => !columnsAllowedAsBarcodeValue.value?.length) + // set default meta value @@ -90,7 +92,7 @@ setAdditionalValidations({ not-found-content="No valid Column Type can be found." @click.stop /> -
+