mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: fix PublisherPropertiesDialogComponent type error
parent
fa3d4f6097
commit
f693db6f15
|
@ -26,7 +26,7 @@ export class PublisherPropertiesDialogComponent {
|
||||||
audioDevices = [];
|
audioDevices = [];
|
||||||
videoDevices = [];
|
videoDevices = [];
|
||||||
|
|
||||||
filter = {};
|
filter = { type: undefined, options: undefined };
|
||||||
stringOptions: string;
|
stringOptions: string;
|
||||||
|
|
||||||
constructor(public dialogRef: MatDialogRef<PublisherPropertiesDialogComponent>,
|
constructor(public dialogRef: MatDialogRef<PublisherPropertiesDialogComponent>,
|
||||||
|
@ -95,7 +95,7 @@ export class PublisherPropertiesDialogComponent {
|
||||||
this.filter['options'] = JSON.parse(this.stringOptions);
|
this.filter['options'] = JSON.parse(this.stringOptions);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
if (!this.filter['type']) {
|
if (this.filter['type'] == null || this.filter['type'] == '') {
|
||||||
this.publisherProperties.filter = null;
|
this.publisherProperties.filter = null;
|
||||||
} else {
|
} else {
|
||||||
this.publisherProperties.filter = new Filter(this.filter['type'], this.filter['options']);
|
this.publisherProperties.filter = new Filter(this.filter['type'], this.filter['options']);
|
||||||
|
|
Loading…
Reference in New Issue