[web] Fix rendering of files without extension (#5170)

Fixes: https://github.com/ente-io/ente/issues/5125
This commit is contained in:
Manav Rathi
2025-02-25 13:23:16 +05:30
committed by GitHub

View File

@@ -391,7 +391,7 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = ({
const extension = lowercaseExtension(file.metadata.title);
// Assume it is supported.
let isSupported = true;
if (needsJPEGConversion(extension)) {
if (extension && needsJPEGConversion(extension)) {
// See if the file is on the whitelist of extensions that we know
// will not be directly renderable.
if (!isDesktop) {