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 backportbot[bot]
parent 2348d99cb5
commit 55ef35efe1

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>