Skip to content

Commit

Permalink
Fixed default value
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Nov 30, 2020
1 parent 19142dd commit 3d97c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat-ui/src/components/label-selector/label-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function LabelSelector(props: Props): JSX.Element {

return false;
}}
defaultValue={labels[0]}
defaultValue={labels[0].id}
onChange={(newValue: string) => {
const [label] = labels.filter((_label: any): boolean => _label.id === +newValue);
if (label) {
Expand Down

0 comments on commit 3d97c3b

Please sign in to comment.