Skip to content

Commit

Permalink
preview: Show error when file could not be loaded
Browse files Browse the repository at this point in the history
(instead of infinite loading spinner)
  • Loading branch information
dschmidt committed Jul 27, 2022
1 parent bd2c197 commit 0066269
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web-app-preview/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,12 @@ export default defineComponent({
for (let i = 0; i < this.filteredFiles.length; i++) {
if (this.filteredFiles[i].webDavPath === filePath) {
this.activeIndex = i
break
return
}
}
this.isFileContentLoading = false
this.isFileContentError = true
},
// react to PopStateEvent ()
Expand Down

0 comments on commit 0066269

Please sign in to comment.