useSelectionState: Update stories

This commit is contained in:
Gustav Hansen 2022-04-29 16:34:11 +02:00
parent 8cf98ef0c5
commit 5ef6930239

View File

@ -15,7 +15,7 @@ import { useSelectionState } from '@strapi/helper-plugin';
const Modal = ({ onToggle, isOpen }) => {
const [selectedAssets, { selectOne, selectAll, selectOnly, setSelections }] = useSelectionState(
'id', // This is the comparaison attribute name
['id'], // This are the comparaison attribute names
[]
);