Browse Source

fix(nc-gui): qr & barcode visibility issue if value is 0

pull/8806/head
Ramesh Mane 6 months ago
parent
commit
67882a44de
  1. 2
      packages/nc-gui/components/virtual-cell/QrCode.vue
  2. 2
      packages/nc-gui/components/virtual-cell/barcode/Barcode.vue

2
packages/nc-gui/components/virtual-cell/QrCode.vue

@ -6,7 +6,7 @@ const maxNumberOfAllowedCharsForQrValue = 2000
const cellValue = inject(CellValueInj)
const qrValue = computed(() => String(cellValue?.value || ''))
const qrValue = computed(() => String(cellValue?.value ?? ''))
const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))

2
packages/nc-gui/components/virtual-cell/barcode/Barcode.vue

@ -8,7 +8,7 @@ const cellValue = inject(CellValueInj)
const column = inject(ColumnInj)
const barcodeValue: ComputedRef<string> = computed(() => String(cellValue?.value || ''))
const barcodeValue: ComputedRef<string> = computed(() => String(cellValue?.value ?? ''))
const tooManyCharsForBarcode = computed(() => barcodeValue.value.length > maxNumberOfAllowedCharsForBarcodeValue)

Loading…
Cancel
Save