-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: crash in the file detail view (#1395)
* fix: crash in the file detail view In a recent fix, we introduced a regression where we started to access width and height of a file. However, this will only work for images and not for normal files like PDF, Docx etc. In order to fix this, we need to guard and check if the file is actually an image before trying to access the attributes. - Github Issue: #1394 Authored-by: Vinit Kumar <[email protected]> * fix: refactor code and add test to check the functionality and verify fix * fix: remove logs
- Loading branch information
1 parent
3ce96c2
commit 3cac8a4
Showing
2 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters