Extra check for type in updateValues
This commit is contained in:
parent
7a64fb83eb
commit
5d458e01d4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user