Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

onboard issue fixed (#787)

Jaseem Jas822dc36ead06
diff --git a/frontend/src/components/helpers/auth/RequireAuth.js b/frontend/src/components/helpers/auth/RequireAuth.js
index e5649c696..48a6e7f7b 100644
--- a/frontend/src/components/helpers/auth/RequireAuth.js
+++ b/frontend/src/components/helpers/auth/RequireAuth.js
@@ -39,11 +39,8 @@ const RequireAuth = () => {
} catch (error) {
// Do nothing
}
- const currOrgName = getOrgNameFromPathname(
- pathname,
- isLlmWhisperer !== undefined ? !isLlmWhisperer : null
- );
+ const currOrgName = getOrgNameFromPathname(pathname, isLlmWhisperer);
useEffect(() => {
if (!sessionDetails?.isLoggedIn) {
return;
diff --git a/frontend/src/helpers/GetStaticData.js b/frontend/src/helpers/GetStaticData.js
index 262a131a9..85b8b6548 100644
--- a/frontend/src/helpers/GetStaticData.js
+++ b/frontend/src/helpers/GetStaticData.js
@@ -27,7 +27,7 @@ const getBaseUrl = () => {
return url;
};
-const getOrgNameFromPathname = (pathname, isUnstract = true) => {
+const getOrgNameFromPathname = (pathname, isLlmWhisperer) => {
if (!pathname) {
return null;
}
@@ -35,8 +35,7 @@ const getOrgNameFromPathname = (pathname, isUnstract = true) => {
if (publicRoutes.includes(pathname)) {
return null;
}
-
- if (!isUnstract) {
+ if (isLlmWhisperer) {
return pathname?.split("/")[2];
}
return pathname?.split("/")[1];