Skip to content

Commit 1e46fe5

Browse files
committed
fix(ViewerComponent): Only fetch source if this.source is set
1 parent 596f67b commit 1e46fe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)