1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Always use default item icon

This commit is contained in:
Bill Thornton 2024-09-21 02:14:07 -04:00
parent 2abc648dcf
commit 46c6fd4b85
2 changed files with 0 additions and 7 deletions

View file

@ -68,11 +68,6 @@ describe('getItemTypeIcon()', () => {
}); });
}); });
it('Should return undefined for undefined type', () => {
expect(getItemTypeIcon(undefined, 'default'))
.toBeUndefined();
});
it('Should return the default icon for unknown type if provided', () => { it('Should return the default icon for unknown type if provided', () => {
expect(getItemTypeIcon('foobar', 'default')) expect(getItemTypeIcon('foobar', 'default'))
.toBe('default'); .toBe('default');

View file

@ -136,8 +136,6 @@ export function getItemTypeIcon(itemType: BaseItemKind | string | undefined, def
return 'photo'; return 'photo';
case BaseItemKind.PhotoAlbum: case BaseItemKind.PhotoAlbum:
return 'photo_album'; return 'photo_album';
case undefined:
return;
default: default:
return defaultIcon; return defaultIcon;
} }