Skip to content

Commit

Permalink
Fix closing a file info preview
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
ChristophWurst authored and nextcloud-command committed Aug 24, 2022
1 parent fcd357d commit ae808b2
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 ae808b2

Please sign in to comment.