Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: InseeFrLab/onyxia-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.2.2
Choose a base ref
...
head repository: InseeFrLab/onyxia-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.2.3
Choose a head ref
  • 5 commits
  • 2 files changed
  • 1 contributor

Commits on Dec 3, 2024

  1. Copy the full SHA
    2e6a2d7 View commit details
  2. Bump version

    garronej committed Dec 3, 2024
    Copy the full SHA
    c224dfe View commit details
  3. Copy the full SHA
    0e55506 View commit details
  4. Bump version

    garronej committed Dec 3, 2024
    Copy the full SHA
    b55d74c View commit details
  5. Fix build

    garronej committed Dec 3, 2024
    Copy the full SHA
    4d7b8a7 View commit details
Showing with 21 additions and 5 deletions.
  1. +1 −1 package.json
  2. +20 −4 src/LeftBar.tsx
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onyxia-ui",
"version": "6.2.2",
"version": "6.2.3",
"description": "The Onyxia UI toolkit",
"repository": {
"type": "git",
24 changes: 20 additions & 4 deletions src/LeftBar.tsx
Original file line number Diff line number Diff line change
@@ -136,15 +136,31 @@ export const LeftBar = memo(
"groupId" in item_i;

if (getIsDivider(item)) {
{
const hasItem = (function callee(
i: number,
): boolean {
const nextItem = items[i + 1];

if (nextItem === undefined) {
return false;
}

if (getIsDivider(nextItem)) {
return false;
}

if (
nextItem === undefined ||
getIsDivider(nextItem)
nextItem.availability ===
"not visible"
) {
return undefined;
return callee(i + 1);
}

return true;
})(i);

if (!hasItem) {
return undefined;
}

return (