Extra check for type in updateValues

This commit is contained in:
André Böhlke 2019-01-19 16:26:18 +01:00
parent 7a64fb83eb
commit 5d458e01d4

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;
}
}