@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.js
CHANGED
|
@@ -1343,18 +1343,6 @@ function AppSidebar({
|
|
|
1343
1343
|
}, [currentPathname, pathOrgId, organizationId, detectedOrgId, apiBaseUrl, apiNavigationItems, apiOrganizations, navigationLoading, navigationError]);
|
|
1344
1344
|
const user = navigationUser || userProp;
|
|
1345
1345
|
const currentOrgId = organizationId || (pathOrgId && (apiOrganizations.length === 0 || apiOrganizations.some((org) => org.id === pathOrgId)) ? pathOrgId : void 0) || (detectedOrgId && apiNavigationItems.length > 0 ? detectedOrgId : void 0);
|
|
1346
|
-
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
|
|
1347
|
-
console.log("[AppSidebar] currentOrgId calculation:", {
|
|
1348
|
-
"organizationId prop": organizationId,
|
|
1349
|
-
"pathOrgId": pathOrgId,
|
|
1350
|
-
"detectedOrgId": detectedOrgId,
|
|
1351
|
-
"apiOrganizations.length": apiOrganizations.length,
|
|
1352
|
-
"apiNavigationItems.length": apiNavigationItems.length,
|
|
1353
|
-
"pathOrgIdInList": pathOrgId ? apiOrganizations.some((org) => org.id === pathOrgId) : false,
|
|
1354
|
-
"FINAL currentOrgId": currentOrgId,
|
|
1355
|
-
"willDisplayItems": !!currentOrgId && apiNavigationItems.length > 0
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
1346
|
let navigationItems = apiNavigationItems;
|
|
1359
1347
|
if (currentOrgId && navigationItems.length > 0) {
|
|
1360
1348
|
navigationItems = navigationItems.map((item) => ({
|
|
@@ -1367,6 +1355,22 @@ function AppSidebar({
|
|
|
1367
1355
|
}));
|
|
1368
1356
|
}
|
|
1369
1357
|
const displayNavigationItems = currentOrgId ? navigationItems : [];
|
|
1358
|
+
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
|
|
1359
|
+
console.log("[AppSidebar] currentOrgId calculation:", {
|
|
1360
|
+
"organizationId prop": organizationId,
|
|
1361
|
+
"pathOrgId": pathOrgId,
|
|
1362
|
+
"detectedOrgId": detectedOrgId,
|
|
1363
|
+
"apiOrganizations.length": apiOrganizations.length,
|
|
1364
|
+
"apiNavigationItems.length": apiNavigationItems.length,
|
|
1365
|
+
"pathOrgIdInList": pathOrgId ? apiOrganizations.some((org) => org.id === pathOrgId) : false,
|
|
1366
|
+
"FINAL currentOrgId": currentOrgId,
|
|
1367
|
+
"navigationItems.length": navigationItems.length,
|
|
1368
|
+
"displayNavigationItems.length": displayNavigationItems.length,
|
|
1369
|
+
"willDisplayItems": displayNavigationItems.length > 0
|
|
1370
|
+
});
|
|
1371
|
+
console.log("[AppSidebar] FINAL currentOrgId:", currentOrgId);
|
|
1372
|
+
console.log("[AppSidebar] displayNavigationItems.length:", displayNavigationItems.length);
|
|
1373
|
+
}
|
|
1370
1374
|
return /* @__PURE__ */ jsxs(Sidebar, { collapsible: "icon", ...props, children: [
|
|
1371
1375
|
/* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx(
|
|
1372
1376
|
TeamSwitcher,
|