diff --git a/apis/nucleus/src/components/listbox/ListBoxInline.jsx b/apis/nucleus/src/components/listbox/ListBoxInline.jsx index 715a91aee..3d06fd649 100644 --- a/apis/nucleus/src/components/listbox/ListBoxInline.jsx +++ b/apis/nucleus/src/components/listbox/ListBoxInline.jsx @@ -183,14 +183,12 @@ function ListBoxInline({ options, layout }) { const isLocked = layout.qListObject.qDimensionInfo.qLocked === true; const isRtl = direction === 'rtl'; const isDrillDown = layout.qListObject.qDimensionInfo.qGrouping === 'H'; - const listboxSelectionToolbarItems = toolbar - ? createListboxSelectionToolbar({ - layout, - model, - translator, - selectionState, - }) - : []; + const listboxSelectionToolbarItems = createListboxSelectionToolbar({ + layout, + model, + translator, + selectionState, + }); const showTitle = true; const showSearchToggle = search === 'toggle' && showSearch; @@ -235,7 +233,7 @@ function ListBoxInline({ options, layout }) { return ( <> - {toolbarDetachedOnly && } + {toolbarDetachedOnly && } {showTitle && ( - + <Title variant="h6" noWrap ref={titleRef} title={layout.title}> {layout.title} )} @@ -312,7 +306,10 @@ function ListBoxInline({ options, layout }) { - + )}