Skip to content

Commit

Permalink
Added missing key and removed unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Oct 16, 2023
1 parent bd81723 commit 90a355a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Label } from "@lib/components/Label";
import { Select } from "@lib/components/Select";
import { Switch } from "@lib/components/Switch";
import { TableSelect, TableSelectOption } from "@lib/components/TableSelect";
import { TagPicker } from "@lib/components/TagPicker";
import { useValidState } from "@lib/hooks/useValidState";
import { Add, Check, Remove } from "@mui/icons-material";
import { useQuery } from "@tanstack/react-query";
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/lib/components/TableSelect/tableSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ export const TableSelect = withDefaults<TableSelectProps>()(defaultProps, (props
})}
>
{props.headerLabels.map((headerLabel, index) => (
<div className="box-border" style={{ width: `${columnSizesPerc[index]}%` }}>
<div
key={`${headerLabel}-${index}`}
className="box-border"
style={{ width: `${columnSizesPerc[index]}%` }}
>
{headerLabel}
<br />
<Input
Expand Down

0 comments on commit 90a355a

Please sign in to comment.