Restrict adding a server even when the number of servers is zero
This commit is contained in:
@@ -69,7 +69,9 @@ module.exports = {
|
||||
if (hasBuildConfigDefaultTeams(buildConfig)) {
|
||||
newTeams.push(...JSON.parse(JSON.stringify(buildConfig.defaultTeams)));
|
||||
}
|
||||
newTeams.push(...JSON.parse(JSON.stringify(teams)));
|
||||
if (buildConfig.enableServerManagement) {
|
||||
newTeams.push(...JSON.parse(JSON.stringify(teams)));
|
||||
}
|
||||
return newTeams;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user