mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 03:39:03 +00:00
fix(): Hotfix assertions tag add / remove (#13216)
Co-authored-by: John Joyce <john@Mac-2447.lan>
This commit is contained in:
parent
6cc3fff57f
commit
b2e3d0c1c6
@ -40,7 +40,7 @@ export const SelectItemCheckboxGroup: React.FC<SelectItemCheckboxGroupProps> = (
|
||||
<Checkbox
|
||||
value={option.value}
|
||||
isChecked={selectedOptions.includes(option.value)}
|
||||
onChange={() => handleCheckboxToggle(option.value)}
|
||||
setIsChecked={() => handleCheckboxToggle(option.value)}
|
||||
/>
|
||||
</StyledCheckboxLabel>
|
||||
))}
|
||||
|
||||
@ -149,6 +149,7 @@ export const useEntityOperations = ({
|
||||
const addedItems = isRemoveAll
|
||||
? []
|
||||
: selectedOptions.filter((entity) => !olderSelectedEntities?.includes(entity));
|
||||
|
||||
handleSelectionChange({ selectedItems: addedItems, removedItems });
|
||||
setSearchText('');
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user