diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index c601770a64..1cc5af96c5 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -56,9 +56,9 @@ const { const currentCellRef = ref() watch( - [() => rowIndex, isForm], + [() => rowIndex, isForm, attachmentCellRef], () => { - if (!rowIndex && isForm.value && isGallery.value) { + if (!rowIndex && (isForm.value || isGallery.value)) { currentCellRef.value = attachmentCellRef.value } else { nextTick(() => {