Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: some corrections

DarkPhoenix27041da6f7153c06
diff --git a/packages/nc-gui/components/smartsheet/PlainCell.vue b/packages/nc-gui/components/smartsheet/PlainCell.vue
index a833aea079..d51e3a8dcc 100644
--- a/packages/nc-gui/components/smartsheet/PlainCell.vue
+++ b/packages/nc-gui/components/smartsheet/PlainCell.vue
@@ -1,5 +1,5 @@
<script lang="ts" setup>
-import { type BoolType, type ColumnType } from 'nocodb-sdk'
+import type { BoolType, ColumnType, MetaType } from 'nocodb-sdk'
interface Props {
column: ColumnType
@@ -7,12 +7,15 @@ interface Props {
bold?: BoolType
italic?: BoolType
underline?: BoolType
+ meta?: MetaType
showTooltip?: boolean
}
const props = defineProps<Props>()
-const meta = inject(MetaInj)
+const _meta = inject(MetaInj, ref())
+
+const meta = computed(() => props.meta || _meta.value)
const { t } = useI18n()
diff --git a/packages/nc-gui/components/virtual-cell/components/ListItem.vue b/packages/nc-gui/components/virtual-cell/components/ListItem.vue
index e6870a0b9d..95905d9482 100644
--- a/packages/nc-gui/components/virtual-cell/components/ListItem.vue
+++ b/packages/nc-gui/components/virtual-cell/components/ListItem.vue
@@ -1,5 +1,5 @@
<script lang="ts" setup>
-import { PermissionEntity, PermissionKey, UITypes, isVirtualCol, parseStringDateTime } from 'nocodb-sdk'
+import { PermissionEntity, PermissionKey, isVirtualCol } from 'nocodb-sdk'
const props = withDefaults(
defineProps<{
@@ -105,6 +105,7 @@ const attachments: ComputedRef<Attachment[]> = computed(() => {
<div class="flex justify-start">
<SmartsheetPlainCell
v-if="displayValueColumn"
+ :meta="relatedTableMeta"
class="font-semibold text-brand-500 nc-display-value truncate leading-[20px]"
:column="displayValueColumn"
:model-value="row[displayValueColumn.title]"