Skip to content

Commit 55ef35e

Browse files
susnuxbackportbot[bot]
authored andcommitted
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 <[email protected]>
1 parent 2348d99 commit 55ef35e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/files_sharing/src/components/SidebarTabExternal/SidebarTabExternalSection.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const props = defineProps({
2828
// TOOD: Remove with Vue 3
2929
const sectionElement = ref()
3030
watchEffect(() => {
31-
sectionElement.value.node = props.node
31+
if (sectionElement.value) {
32+
sectionElement.value.node = props.node
33+
}
3234
})
3335
</script>

0 commit comments

Comments
 (0)