Skip to content

Commit 32a3c2b

Browse files
authored
Merge pull request #4654 from nextcloud/fix/viewercomponent_source
fix(ViewerComponent): Only fetch source if `this.source` is set
2 parents 596f67b + 8fbb902 commit 32a3c2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

js/text-viewer.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/text-viewer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ViewerComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default {
118118
119119
methods: {
120120
async loadFileContent() {
121-
if (!this.isEditable) {
121+
if (!this.isEditable && this.source) {
122122
const response = await axios.get(this.source)
123123
this.content = response.data
124124
this.contentLoaded = true

0 commit comments

Comments
 (0)