@logickernel/bridge 0.9.4 → 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
|
@@ -1360,6 +1360,14 @@ function AppSidebar({
|
|
|
1360
1360
|
error: navigationError?.message,
|
|
1361
1361
|
navigationUrl: detectedOrgId ? `${apiBaseUrl}/navigation/${detectedOrgId}` : "N/A"
|
|
1362
1362
|
});
|
|
1363
|
+
console.log("[AppSidebar] KEY VALUES:", {
|
|
1364
|
+
"computedCurrentOrgId": computedCurrentOrgId,
|
|
1365
|
+
"apiNavigationItems.length": apiNavigationItems.length,
|
|
1366
|
+
"apiOrganizations.length": apiOrganizations.length,
|
|
1367
|
+
"pathOrgIdInList": pathOrgIdInList,
|
|
1368
|
+
"organizationIds": orgIds,
|
|
1369
|
+
"willDisplayItems": !!computedCurrentOrgId && apiNavigationItems.length > 0
|
|
1370
|
+
});
|
|
1363
1371
|
}
|
|
1364
1372
|
}, [currentPathname, pathOrgId, organizationId, detectedOrgId, apiBaseUrl, apiNavigationItems, apiOrganizations, navigationLoading, navigationError]);
|
|
1365
1373
|
const user = navigationUser || userProp;
|
|
@@ -1376,6 +1384,22 @@ function AppSidebar({
|
|
|
1376
1384
|
}));
|
|
1377
1385
|
}
|
|
1378
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
|
+
}
|
|
1379
1403
|
return /* @__PURE__ */ jsxRuntime.jsxs(Sidebar, { collapsible: "icon", ...props, children: [
|
|
1380
1404
|
/* @__PURE__ */ jsxRuntime.jsx(SidebarHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1381
1405
|
TeamSwitcher,
|