Skip to content

Commit

Permalink
fix: use space webdav path as fallback in web-client
Browse files Browse the repository at this point in the history
There are scenarios where we want to list files for a space root, hence no `fileId` and no `path` are being provided. Hence we need to fall back to the space id in such case.
  • Loading branch information
JammingBen committed Jul 16, 2024
1 parent 7746e12 commit 609e654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-client/src/webdav/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export const getWebDavPath = (
return urlJoin('spaces', fileId, name || '')
}

throw new Error('either a fileId or a path must be provided')
return space.webDavPath
}

0 comments on commit 609e654

Please sign in to comment.