diff --git a/frontend/src/Components/Page/Toolbar/PageToolbarSection.tsx b/frontend/src/Components/Page/Toolbar/PageToolbarSection.tsx index 0a45fdf0db..9fec4d0330 100644 --- a/frontend/src/Components/Page/Toolbar/PageToolbarSection.tsx +++ b/frontend/src/Components/Page/Toolbar/PageToolbarSection.tsx @@ -80,8 +80,12 @@ function PageToolbarSection({ if (buttonCount - 1 === maxButtons) { const overflowItems: PageToolbarButtonProps[] = []; + const buttonsWithoutSeparators = validChildren.filter( + (child) => Object.keys(child.props).length > 0 + ); + return { - buttons: validChildren, + buttons: buttonsWithoutSeparators, buttonCount, overflowItems, };