@logickernel/bridge 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/next/components.cjs
CHANGED
|
@@ -1372,18 +1372,6 @@ function AppSidebar({
|
|
|
1372
1372
|
}, [currentPathname, pathOrgId, organizationId, detectedOrgId, apiBaseUrl, apiNavigationItems, apiOrganizations, navigationLoading, navigationError]);
|
|
1373
1373
|
const user = navigationUser || userProp;
|
|
1374
1374
|
const currentOrgId = organizationId || (pathOrgId && (apiOrganizations.length === 0 || apiOrganizations.some((org) => org.id === pathOrgId)) ? pathOrgId : void 0) || (detectedOrgId && apiNavigationItems.length > 0 ? detectedOrgId : void 0);
|
|
1375
|
-
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
|
|
1376
|
-
console.log("[AppSidebar] currentOrgId calculation:", {
|
|
1377
|
-
"organizationId prop": organizationId,
|
|
1378
|
-
"pathOrgId": pathOrgId,
|
|
1379
|
-
"detectedOrgId": detectedOrgId,
|
|
1380
|
-
"apiOrganizations.length": apiOrganizations.length,
|
|
1381
|
-
"apiNavigationItems.length": apiNavigationItems.length,
|
|
1382
|
-
"pathOrgIdInList": pathOrgId ? apiOrganizations.some((org) => org.id === pathOrgId) : false,
|
|
1383
|
-
"FINAL currentOrgId": currentOrgId,
|
|
1384
|
-
"willDisplayItems": !!currentOrgId && apiNavigationItems.length > 0
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
1375
|
let navigationItems = apiNavigationItems;
|
|
1388
1376
|
if (currentOrgId && navigationItems.length > 0) {
|
|
1389
1377
|
navigationItems = navigationItems.map((item) => ({
|
|
@@ -1396,6 +1384,22 @@ function AppSidebar({
|
|
|
1396
1384
|
}));
|
|
1397
1385
|
}
|
|
1398
1386
|
const displayNavigationItems = currentOrgId ? navigationItems : [];
|
|
1387
|
+
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
|
|
1388
|
+
console.log("[AppSidebar] currentOrgId calculation:", {
|
|
1389
|
+
"organizationId prop": organizationId,
|
|
1390
|
+
"pathOrgId": pathOrgId,
|
|
1391
|
+
"detectedOrgId": detectedOrgId,
|
|
1392
|
+
"apiOrganizations.length": apiOrganizations.length,
|
|
1393
|
+
"apiNavigationItems.length": apiNavigationItems.length,
|
|
1394
|
+
"pathOrgIdInList": pathOrgId ? apiOrganizations.some((org) => org.id === pathOrgId) : false,
|
|
1395
|
+
"FINAL currentOrgId": currentOrgId,
|
|
1396
|
+
"navigationItems.length": navigationItems.length,
|
|
1397
|
+
"displayNavigationItems.length": displayNavigationItems.length,
|
|
1398
|
+
"willDisplayItems": displayNavigationItems.length > 0
|
|
1399
|
+
});
|
|
1400
|
+
console.log("[AppSidebar] FINAL currentOrgId:", currentOrgId);
|
|
1401
|
+
console.log("[AppSidebar] displayNavigationItems.length:", displayNavigationItems.length);
|
|
1402
|
+
}
|
|
1399
1403
|
return /* @__PURE__ */ jsxRuntime.jsxs(Sidebar, { collapsible: "icon", ...props, children: [
|
|
1400
1404
|
/* @__PURE__ */ jsxRuntime.jsx(SidebarHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1401
1405
|
TeamSwitcher,
|