fix(files_sharing): ensure that external section is mounted

Make sure the external section is mounted before trying to assign it the
node prop.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-12-08 13:11:32 +01:00 committed by nextcloud-command
parent aec12f5b51
commit ec617b6b3e

View file

@ -28,6 +28,8 @@ const props = defineProps({
// TOOD: Remove with Vue 3
const sectionElement = ref()
watchEffect(() => {
sectionElement.value.node = props.node
if (sectionElement.value) {
sectionElement.value.node = props.node
}
})
</script>