openvidu-testapp: fix PublisherPropertiesDialogComponent type error

pull/661/head
pabloFuente 2021-10-22 12:11:09 +02:00
parent fa3d4f6097
commit f693db6f15
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export class PublisherPropertiesDialogComponent {
audioDevices = [];
videoDevices = [];
filter = {};
filter = { type: undefined, options: undefined };
stringOptions: string;
constructor(public dialogRef: MatDialogRef<PublisherPropertiesDialogComponent>,
@ -95,7 +95,7 @@ export class PublisherPropertiesDialogComponent {
this.filter['options'] = JSON.parse(this.stringOptions);
} catch (e) {
}
if (!this.filter['type']) {
if (this.filter['type'] == null || this.filter['type'] == '') {
this.publisherProperties.filter = null;
} else {
this.publisherProperties.filter = new Filter(this.filter['type'], this.filter['options']);