Skip to content

Commit

Permalink
Merge pull request #4654 from nextcloud/fix/viewercomponent_source
Browse files Browse the repository at this point in the history
fix(ViewerComponent): Only fetch source if `this.source` is set
  • Loading branch information
mejo- authored Aug 8, 2023
2 parents 596f67b + 8fbb902 commit 32a3c2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/ViewerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
methods: {
async loadFileContent() {
if (!this.isEditable) {
if (!this.isEditable && this.source) {
const response = await axios.get(this.source)
this.content = response.data
this.contentLoaded = true
Expand Down

0 comments on commit 32a3c2b

Please sign in to comment.