Fixing mediafiles list view for medifiles without a type

This commit is contained in:
FinnStutzenstein 2017-07-26 15:46:14 +02:00
parent 5644e99b43
commit 6c5cc799ca
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ angular.module('OpenSlidesApp.mediafiles.resources', [
return /\/(.+?)$/.exec(filename)[1];
}],
filetype: [function () {
return this.mediafile.type;
return this.mediafile.type || gettext('undefined');
}],
title_or_filename: ['title', 'mediafile', function (title) {
return title || this.filename;