diff --git a/frontend-angular/src/app/item/item.component.ts b/frontend-angular/src/app/item/item.component.ts
index 06cacc74e..c0872c4dc 100644
--- a/frontend-angular/src/app/item/item.component.ts
+++ b/frontend-angular/src/app/item/item.component.ts
@@ -36,9 +36,13 @@ export class ItemComponent implements OnInit, OnDestroy {
this.showPlayer = !this.showPlayer;
}
- mediaType() {
- return this.item.mimeType.substr(0, this.item.mimeType.indexOf('/'));
+ get mediaType() {
+ console.log(this.item.mimeType);
+ if (this.item.mimeType == null) {
+ return 'unknown';
+ }
+ return this.item.mimeType.substr(0, this.item.mimeType.indexOf('/'))
}
openSideNav() {