Browse Source

Merge pull request #8806 from nocodb/nc-fix/qr-barcode-issue

fix(nc-gui): qr & barcode visibility issue if referenced value is 0
pull/8808/head
Ramesh Mane 5 months ago committed by GitHub
parent
commit
e7d96d7120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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