Skip to content

Commit 9589d0f

Browse files
committed
wip
1 parent 08928d1 commit 9589d0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hwproj.front/src/components/Common/GroupSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface GroupSelectorProps {
2424
}
2525

2626
const GroupSelector: FC<GroupSelectorProps> = (props) => {
27-
const groups = [{id: -1, name: ""}, {id: undefined, name: "Все студенты"}, ...(props.groups || [])]
27+
const groups = [{id: -1, name: ""}, {id: undefined, name: "Все студенты"}, ...(props.groups || []).filter(x => x.name)]
2828
const selectedGroup = groups.find(g => g.id == props.selectedGroupId)
2929
const [formState, setFormState] = useState<{
3030
name: string,

0 commit comments

Comments
 (0)