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.0
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.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 22, 2024

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

    garronej committed Nov 22, 2024
    Copy the full SHA
    fc124a2 View commit details
Showing with 16 additions and 4 deletions.
  1. +1 βˆ’1 package.json
  2. +15 βˆ’3 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.0",
"version": "6.2.1",
"description": "The Onyxia UI toolkit",
"repository": {
"type": "git",
18 changes: 15 additions & 3 deletions src/LeftBar.tsx
Original file line number Diff line number Diff line change
@@ -130,9 +130,21 @@ export const LeftBar = memo(
/>
{items
.map((item, i) => {
if ("groupId" in item) {
if (i === items.length - 1) {
return undefined;
const getIsDivider = (
item_i: typeof item,
): item_i is LeftBarProps.Divider =>
"groupId" in item_i;

if (getIsDivider(item)) {
{
const nextItem = items[i + 1];

if (
nextItem === undefined ||
getIsDivider(nextItem)
) {
return undefined;
}
}

return (