Skip to content

Commit fc6c23e

Browse files
authored
Merge pull request #427 from AsToNlele/fix-docs-selection
fix(docs): single selection
2 parents 3d0fd19 + 61b8591 commit fc6c23e

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)