mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-14 10:35:44 +03:00
fix: set fallback icon (#4293)
This commit is contained in:
parent
bab3ab376d
commit
8787f66c60
@ -31,7 +31,7 @@ export function getFileIcon(fileName: string) {
|
|||||||
splitName.shift();
|
splitName.shift();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iconName === '') iconName = 'file';
|
if (iconName === '') iconName = 'document';
|
||||||
const icon = fileIcons[iconName];
|
const icon = fileIcons[iconName];
|
||||||
return `data:image/svg+xml;base64,${convertToBase64(icon)}`;
|
return `data:image/svg+xml;base64,${convertToBase64(icon)}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user