diff --git a/frontend/app/javascript/dashboard/helper/portalHelper.js b/frontend/app/javascript/dashboard/helper/portalHelper.js index 33a2a822..76b92118 100644 --- a/frontend/app/javascript/dashboard/helper/portalHelper.js +++ b/frontend/app/javascript/dashboard/helper/portalHelper.js @@ -13,11 +13,7 @@ const formatCustomDomain = customDomain => */ const getDefaultBaseURL = () => { const { hostURL, helpCenterURL } = window.chatwootConfig || {}; - const baseURL = helpCenterURL || hostURL || ''; - - if (!baseURL) { - throw new Error('No valid base URL found in configuration'); - } + const baseURL = helpCenterURL || hostURL || window.location.origin; return baseURL; };