Browse Source

refactor(gui): render attachment lookup in the same way how it renders in normal cell

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

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

@ -106,10 +106,7 @@ 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"
>
<div v-if="isAttachment(lookupColumn) && arrValue[0] && !Array.isArray(arrValue[0]) && typeof arrValue[0] === 'object'">
<LazySmartsheetCell :model-value="arrValue" :column="lookupColumn" :edit-enabled="false" :read-only="true" />
</div>
<!-- For attachment cell avoid adding chip style -->

Loading…
Cancel
Save