fix: set fallback icon (#4293)

This commit is contained in:
Nico Domino 2024-07-09 10:07:29 +02:00 committed by GitHub
parent bab3ab376d
commit 8787f66c60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ export function getFileIcon(fileName: string) {
splitName.shift();
}
if (iconName === '') iconName = 'file';
if (iconName === '') iconName = 'document';
const icon = fileIcons[iconName];
return `data:image/svg+xml;base64,${convertToBase64(icon)}`;
}