Skip to content

Commit

Permalink
fix: make column ids unique
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 17, 2021
1 parent c7d9826 commit 0860e5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/blocks/src/StoryData/BaseStoryData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const BaseStoryData: FC<BaseStoryDataProps> = ({
const columns = [
{
Header: 'select',
id: '__data_row_select',
Cell: ({ row: { original } }: { row: Row<DataRow> }) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { id, ...data } = original;
Expand All @@ -57,7 +58,7 @@ export const BaseStoryData: FC<BaseStoryDataProps> = ({
},
{
Header: '#',
accessor: 'id',
accessor: '__data_row_id',
Cell: ({
row: {
original: { id },
Expand Down

0 comments on commit 0860e5e

Please sign in to comment.