Open pludov opened 1 year ago
Hi, I am new to Open Source and I want to contribute to this project, so could you please assign this issue to me ? I am excited to work towards resolving it.
@Pushyajain There's no need to get "assigned" it - if you have a proposed implementation submit it as PR from your own fork of the repository.
Hello, having the same issue.
Opening from my app using this code. With a filePath pointing to a file with a mimetype not supported.
OCA.Viewer.open({path: filePath,});
Give me this error in console.
Viewer.vue:639 Could not open file /LICENSE.md TypeError: Cannot read properties of undefined (reading 'theme') at o.openFileInfo (Viewer.vue:675:1) at o.openFile (Viewer.vue:632:1)
How can I deal with that from my app ?
Describe the bug
Opening an unsupported mime file from the file view freeze on the wait icon, with no error message displayed to the user
To Reproduce
Run the following in console while browsing files:
The console reports:
Probable fix
Seems that in Viewer.vue - https://github.com/nextcloud/viewer/blame/22e47429df029eeb2f36e2361f49e59768dec725/src/views/Viewer.vue#L559 , the use of the handler variable should be swapped with its verification: