Skip to content

Commit

Permalink
fix(Datagrid): add getSubRows property to useDatagrid to avoid se…
Browse files Browse the repository at this point in the history
…arch removing nested rows (#5501)

* chore: begin investigating nested row search issues

* fix(Datagrid): update storybook to use getSubRows workaround

* chore: apply getSubRows to other stories
  • Loading branch information
matthewgallo committed Jun 18, 2024
1 parent cb6e9e1 commit 504841c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ return <Datagrid datagridState={datagridState} />;
/>
),
},
layout: 'fullscreen',
layout: 'padded',
},
argTypes: {
featureFlags: {
Expand Down Expand Up @@ -200,6 +200,7 @@ const SingleLevelNestedRows = ({ ...args }) => {
data,
DatagridActions,
...args.defaultGridProps,
getSubRows: (row) => row.subRows,
},
useNestedRows
);
Expand Down Expand Up @@ -239,6 +240,7 @@ const NestedRows = ({ ...args }) => {
data,
DatagridActions,
...args.defaultGridProps,
getSubRows: (row) => row.subRows,
},
useNestedRows
);
Expand Down Expand Up @@ -276,6 +278,7 @@ const SelectableNestedRows = ({ ...args }) => {
data,
DatagridActions,
...args.defaultGridProps,
getSubRows: (row) => row.subRows,
},
useNestedRows,
useSelectRows
Expand Down

0 comments on commit 504841c

Please sign in to comment.