Skip to content

Commit 0ec1e18

Browse files
ChristophWurstnextcloud-command
authored andcommitted
Fix closing a file info preview
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 61f7935 commit 0ec1e18

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

js/viewer-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/Viewer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ export default class Viewer {
257257
*/
258258
close() {
259259
this._state.file = ''
260+
this._state.fileInfo = null
260261
this._state.files = []
261262
this._state.canLoop = true
262263
this._state.loadMore = () => ([])

0 commit comments

Comments
 (0)