Skip to content

Commit 61b8591

Browse files
committed
fix(docs): single selection
1 parent 3d0fd19 commit 61b8591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/module/patternfly-docs/content/extensions/data-view/examples/DataView/PredefinedLayoutFullExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const RepositoriesTable: React.FunctionComponent<RepositoriesTableProps> = ({ se
152152
const pagination = useDataViewPagination({ perPage: 5 });
153153
const { page, perPage } = pagination;
154154

155-
const selection = useDataViewSelection({ matchOption: (a, b) => a[0] === b[0] });
155+
const selection = useDataViewSelection({ matchOption: (a, b) => a.row[0] === b.row[0] });
156156
const { selected, onSelect, isSelected } = selection;
157157

158158
const { trigger } = useDataViewEventsContext();

0 commit comments

Comments
 (0)