From c3329d6b97dd1714073b39e1e6bde12bb44db994 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Thu, 24 Oct 2024 11:22:50 -0300 Subject: [PATCH] handle cases where aap.learningDashboardBase is missing --- .../imports/ui/components/learning-dashboard/service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/learning-dashboard/service.js b/bigbluebutton-html5/imports/ui/components/learning-dashboard/service.js index 7817ee6e90..2779d70e1d 100644 --- a/bigbluebutton-html5/imports/ui/components/learning-dashboard/service.js +++ b/bigbluebutton-html5/imports/ui/components/learning-dashboard/service.js @@ -76,7 +76,7 @@ const setLearningDashboardCookie = () => { // In a cluster setup it will be necessary to specify the root domain // because the Dashboard might be in a different subdomain - if (learningDashboardBase.startsWith('http')) { + if (learningDashboardBase && learningDashboardBase.startsWith('http')) { const commonDomain = findCommonDomain(learningDashboardBase, window.location.href); if (commonDomain !== '') { cookieString += `;domain=${commonDomain}`;