Merge pull request #4142 from boehlke/fix_mediafiles_add

Extra check for type in updateValues
This commit is contained in:
Emanuel Schütze 2019-01-19 21:05:12 +01:00 committed by GitHub
commit e6db2c97fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ export class ViewMediafile extends BaseViewModel {
}
public updateValues(update: Mediafile): void {
if (this.mediafile.id === update.id) {
if (update instanceof Mediafile && this.mediafile.id === update.id) {
this._mediafile = update;
}
}