Merge pull request #4142 from boehlke/fix_mediafiles_add
Extra check for type in updateValues
This commit is contained in:
commit
e6db2c97fc
@ -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