diff --git a/packages/nc-gui/components/virtual-cell/QrCode.vue b/packages/nc-gui/components/virtual-cell/QrCode.vue index a44d1daf8c..6c2eca5a8c 100644 --- a/packages/nc-gui/components/virtual-cell/QrCode.vue +++ b/packages/nc-gui/components/virtual-cell/QrCode.vue @@ -3,13 +3,13 @@ import { useQRCode } from '@vueuse/integrations/useQRCode' const value = inject(CellValueInj) -const qrCode = - value?.value && - useQRCode(value?.value, { - width: 150, - }) +const qrValue = computed(() => value?.value) + +const qrCode = useQRCode(qrValue, { + width: 150, +}) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index 1acfad08e8..e61b40d228 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -1381,36 +1381,10 @@ class BaseModelSqlv2 { null, this.dbDriver, this.model - // this.aliasToColumn ); - // todo: verify syntax of as ? / ?? - // qb.select( - // this.dbDriver.raw(`?? as ??`, [ - // selectQb.builder, - // sanitize(column.title), - // ]) - // ); - // qb.select({ - // [column.column_name]: this.dbDriver.raw(`?? as ??`, [ - // selectQb.builder, - // sanitize(column.title), - // ]), - // }); - qb.select({ [column.column_name]: selectQb.builder, }); - - // const formulOption = await col.getColOptions(); - // const { builder } = await formulaQueryBuilderv2( - // formulOption.formula, - // alias, - // knex, - // model, - // { ...aliasToColumn, [col.id]: null } - // ); - // builder.sql = '(' + builder.sql + ')'; - // aliasToColumn[col.id] = builder; } break; default: {