Skip to content

Commit

Permalink
Add try...catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Nov 21, 2022
1 parent 20da176 commit f2885fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/web-app-files/src/views/spaces/GenericSpace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,13 @@ export default defineComponent({
async mounted() {
if (isPublicSpaceResource(this.space)) {
const publicSpace = await this.$clientService.webdav.getFileInfo(this.space)
let publicSpace
try {
publicSpace = await this.$clientService.webdav.getFileInfo(this.space)
} catch (e) {
publicSpace = this.space
}
if (linkRoleUploaderFolder.bitmask(false) === publicSpace.publicLinkPermission) {
return this.$router.push({
name: locationPublicUpload.name,
Expand Down

0 comments on commit f2885fa

Please sign in to comment.