Skip to content

Commit

Permalink
Use optional changing in free space check
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jul 6, 2020
1 parent 49edca0 commit f1ca386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/components/FilesAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ export default {
hasFreeSpace() {
return (
(this.quota && this.quota.free > 0) ||
(this.currentFolder && this.currentFolder.permissions.indexOf('M') >= 0) ||
this.quota?.free > 0 ||
this.currentFolder?.permissions?.indexOf('M') >= 0 ||
this.publicPage()
)
},
Expand Down

0 comments on commit f1ca386

Please sign in to comment.