fix: globalSearchShow.

This commit is contained in:
elforjani3
2021-08-05 20:10:29 +02:00
parent 82847076c0
commit 3cfa6c379c
2 changed files with 5 additions and 9 deletions

View File

@@ -38,9 +38,6 @@ export function ItemsMultiSelect({
[isItemSelected],
);
// Count selected items.
const countSelected = localSelected.length;
// Handle item selected.
const handleItemSelect = useCallback(
({ id }) => {
@@ -77,13 +74,16 @@ export function ItemsMultiSelect({
[],
);
// Count selected items.
const countSelected = itemsSelected().length;
// Clear Button
const clearButton =
countSelected > 0 ? (
<Button
icon="cross"
minimal={true}
onClick={() => setLocalSelected([])}
// onClick={() => setLocalSelected([])}
/>
) : undefined;