From f693db6f1528c88dae5a96bf2a7c9648fec10f54 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 22 Oct 2021 12:11:09 +0200 Subject: [PATCH] openvidu-testapp: fix PublisherPropertiesDialogComponent type error --- .../publisher-properties-dialog.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvidu-testapp/src/app/components/dialogs/publisher-properties-dialog/publisher-properties-dialog.component.ts b/openvidu-testapp/src/app/components/dialogs/publisher-properties-dialog/publisher-properties-dialog.component.ts index 963cf3bf..f473437b 100644 --- a/openvidu-testapp/src/app/components/dialogs/publisher-properties-dialog/publisher-properties-dialog.component.ts +++ b/openvidu-testapp/src/app/components/dialogs/publisher-properties-dialog/publisher-properties-dialog.component.ts @@ -26,7 +26,7 @@ export class PublisherPropertiesDialogComponent { audioDevices = []; videoDevices = []; - filter = {}; + filter = { type: undefined, options: undefined }; stringOptions: string; constructor(public dialogRef: MatDialogRef, @@ -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']);