Browse Source

fix(gui): reset attachment cell value on update

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4222/head
Pranav C 2 years ago
parent
commit
a888539bd4
  1. 11
      packages/nc-gui/components/cell/attachment/index.vue

11
packages/nc-gui/components/cell/attachment/index.vue

@ -115,9 +115,18 @@ watch(
attachments.value = []
}
}
} else {
if (isPublic.value && isForm.value) {
storedFiles.value = []
} else {
attachments.value = []
}
}
},
{ immediate: true },
{
immediate: true
}
,
)
/** updates attachments array for autosave */

Loading…
Cancel
Save