Skip to content

Commit 1b950e1

Browse files
fix
1 parent 83a8d30 commit 1b950e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web/src/app/[domain]/components/connectionCreationForms/gitlabConnectionCreationForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ const additionalConfigValidation = (config: GitlabConnectionConfig): { message:
1313
const hasProjects = config.projects && config.projects.length > 0 && config.projects.some(p => p.trim().length > 0);
1414
const hasUsers = config.users && config.users.length > 0 && config.users.some(u => u.trim().length > 0);
1515
const hasGroups = config.groups && config.groups.length > 0 && config.groups.some(g => g.trim().length > 0);
16+
const hasAll = config.all;
1617

17-
if (!hasProjects && !hasUsers && !hasGroups) {
18+
if (!hasProjects && !hasUsers && !hasGroups && !hasAll) {
1819
return {
1920
message: "At least one project, user, or group must be specified",
2021
isValid: false,

0 commit comments

Comments
 (0)