Browse Source

fix(gui): if lookup column is attachment and array of objects then pass the array to smartsheet cell

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5063/head
Pranav C 2 years ago
parent
commit
091b6dd210
  1. 8
      packages/nc-gui/components/virtual-cell/Lookup.vue

8
packages/nc-gui/components/virtual-cell/Lookup.vue

@ -102,7 +102,14 @@ const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning, activ
<!-- Render normal cell -->
<template v-else>
<div
v-if="isAttachment(lookupColumn) && arrValue[0] && !Array.isArray(arrValue[0]) && typeof arrValue[0] === 'object'"
class="min-w-max"
>
<LazySmartsheetCell :model-value="arrValue" :column="lookupColumn" :edit-enabled="false" />
</div>
<!-- For attachment cell avoid adding chip style -->
<template v-else>
<div
v-for="(v, i) of arrValue"
:key="i"
@ -118,6 +125,7 @@ const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning, activ
</div>
</template>
</template>
</template>
</div>
<div>
<div v-if="showEditNonEditableFieldWarning" class="text-left text-wrap mt-2 text-[#e65100] text-xs">

Loading…
Cancel
Save