Fix collectable collection selecting initial items lazily
This commit is contained in:
@@ -50,7 +50,7 @@ export function CheckboxListSetting<Item>({
|
||||
const { selectedItemIds, handleSelection, handleSelectAll, reset } = useSelectableCollection(items.length, {
|
||||
currentKey: 'default',
|
||||
itemIds,
|
||||
initialState: { default: currentSelectedItemIds },
|
||||
initialState: useMemo(() => ({ default: currentSelectedItemIds }), [currentSelectedItemIds]),
|
||||
});
|
||||
|
||||
const handleCancel = () => {
|
||||
|
||||
Reference in New Issue
Block a user