Skip to content

Commit

Permalink
fix(ViewerComponent): Only fetch source if this.source is set
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- authored and juliusknorr committed Aug 9, 2023
1 parent 240cb2e commit ba73e7e
Showing 1 changed file with 1 addition and 1 deletion.
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 ba73e7e

Please sign in to comment.