From 5d458e01d415051099c80977d83500e14663e1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20B=C3=B6hlke?= Date: Sat, 19 Jan 2019 16:26:18 +0100 Subject: [PATCH] Extra check for type in updateValues --- client/src/app/site/mediafiles/models/view-mediafile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/mediafiles/models/view-mediafile.ts b/client/src/app/site/mediafiles/models/view-mediafile.ts index 01c9a4db4..cd5f6f250 100644 --- a/client/src/app/site/mediafiles/models/view-mediafile.ts +++ b/client/src/app/site/mediafiles/models/view-mediafile.ts @@ -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; } }