Skip to content

Commit

Permalink
Merge pull request #1348 from nextcloud/fix/close-file-info
Browse files Browse the repository at this point in the history
Fix closing a file info preview
  • Loading branch information
ChristophWurst authored Aug 25, 2022
2 parents 61f7935 + 0ec1e18 commit a606283
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/services/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export default class Viewer {
*/
close() {
this._state.file = ''
this._state.fileInfo = null
this._state.files = []
this._state.canLoop = true
this._state.loadMore = () => ([])
Expand Down

0 comments on commit a606283

Please sign in to comment.