From 5dd7944bdb55f3f0c0226e984d109a4245956705 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 8 Jan 2025 07:54:36 -0600 Subject: [PATCH] fix(connection): Adds default tenant value on error. Avoids undefined error. --- react/features/base/conference/middleware.any.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/conference/middleware.any.ts b/react/features/base/conference/middleware.any.ts index 976c3e9f7e..e3c5fc3b73 100644 --- a/react/features/base/conference/middleware.any.ts +++ b/react/features/base/conference/middleware.any.ts @@ -430,7 +430,7 @@ function _connectionFailed({ dispatch, getState }: IStore, next: Function, actio } as INotificationProps; const { locationURL = { href: '' } as URL } = getState()['features/base/connection']; - const { tenant } = parseURIString(locationURL.href) || {}; + const { tenant = '' } = parseURIString(locationURL.href) || {}; if (tenant.startsWith('-') || tenant.endsWith('-')) { notificationProps.descriptionKey = 'notify.invalidTenantHyphenDescription';