Merge pull request #41416 from nextcloud/bugfix/preview-reset

This commit is contained in:
Julius Härtl 2023-11-13 18:57:54 +01:00 committed by GitHub
commit 96eb00a861
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -217,11 +217,11 @@ export default Vue.extend({
methods: {
reset() {
// Reset background state
this.backgroundFailed = undefined
if (this.$refs.previewImg) {
if (this.backgroundFailed === true && this.$refs.previewImg) {
this.$refs.previewImg.src = ''
}
// Reset background state
this.backgroundFailed = undefined
},
t,

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long