fix(connection): Adds default tenant value on error.

Avoids undefined error.
This commit is contained in:
damencho
2025-01-08 07:54:36 -06:00
committed by Дамян Минков
parent 48732c6784
commit 5dd7944bdb

View File

@@ -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';