Browse Source

fix(gui-v2): correction in bt local state

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3025/head
Pranav C 2 years ago
parent
commit
f4976d9aa6
  1. 2
      packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue
  2. 2
      packages/nc-gui-v2/composables/useSmartsheetRowStore.ts

2
packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue

@ -45,7 +45,7 @@ const value = computed(() => {
<div class="flex w-full chips-wrapper align-center" :class="{ active }">
<div class="chips d-flex align-center flex-grow">
<template v-if="value">
<ItemChip :item="value" :value="cellValue[relatedTablePrimaryValueProp]" @unlink="unlink(value)" />
<ItemChip :item="value" :value="value[relatedTablePrimaryValueProp]" @unlink="unlink(value)" />
</template>
</div>
<div class="flex-1 flex justify-end gap-1 min-h-[30px] align-center">

2
packages/nc-gui-v2/composables/useSmartsheetRowStore.ts

@ -13,7 +13,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
// actions
const addLTARRef = async (value: Record<string, any>, column: ColumnType) => {
const { isHm, isMm } = useVirtualCell(ref(column))
const { isHm, isMm } = $(useVirtualCell(ref(column)))
if (isHm || isMm) {
state.value[column.title!] = state.value[column.title!] || []
state.value[column.title!].push(value)

Loading…
Cancel
Save