Skip to content

Commit 33a17db

Browse files
committed
fix(Editor): Add mandatory root attribute to new File()
Signed-off-by: Jonas <jonas@freesources.org>
1 parent 1cc1f4c commit 33a17db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Editor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ export default defineComponent({
500500
if (session.userId && this.relativePath?.length) {
501501
const node = new File({
502502
id: this.fileId,
503+
root: `/files/${session.userId}`,
503504
source: generateRemoteUrl(
504505
`dav/files/${session.userId}${this.relativePath}`,
505506
),

0 commit comments

Comments
 (0)