Browse Source

qrcode: cleanup

pull/4142/head
Daniel Spaude 2 years ago
parent
commit
41af28231e
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 5
      packages/nc-gui/components/virtual-cell/QrCode.vue
  2. 5
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

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

@ -13,10 +13,7 @@ const qrCodeLarge = useQRCode(qrValue, {
const visible = ref<boolean>(false)
const showQrModal = () => (visible.value = true)
const handleOk = (e: MouseEvent) => {
console.log(e)
visible.value = false
}
const handleOk = (e: MouseEvent) => (visible.value = false)
</script>
<template>

5
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

@ -1366,12 +1366,9 @@ class BaseModelSqlv2 {
const qrValueColumn = await Column.get({
colId: qrCodeColumn.fk_qr_value_column_id,
});
console.log('qrCodeColumn', qrCodeColumn);
console.log('qrValueColumn', qrValueColumn);
// If the referenced
// If the referenced value cannot be found: cancel current iteration
if (qrValueColumn == null) {
// res[sanitize(column.title || column.column_name)] = null;
break;
}

Loading…
Cancel
Save