Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit d66a1180 authored by Dominik Seeger's avatar Dominik Seeger :ghost:
Browse files

hotfix for group problem

parent fa50eb58
No related branches found
Tags 5.1.5
1 merge request!231hotfix for group problem
Pipeline #121399 canceled
......@@ -96,8 +96,7 @@ function UPDATE_CREATE_PARAMETERS_FROM_URL(state: AssignmentsState, route: Route
state.assignmentCreation.submissionType = submissionType
state.assignmentCreation.stage = stage
const group = state.groups.find((group) => group.pk === group_par)
if (group === undefined) {
console.log(state.groups)
if (group === undefined && state.groups.length > 0) {
throw new Error(`Group ${group_par} appeared in parameter but not available in ${state.groups}`)
}
state.assignmentCreation.group = group
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment