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:
parent
2abc648dcf
commit
46c6fd4b85
2 changed files with 0 additions and 7 deletions
|
@ -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');
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue