Restrict adding a server even when the number of servers is zero

This commit is contained in:
Yuya Ochiai
2017-11-07 22:18:24 +09:00
parent 4abd72856f
commit 878b5c1a42
4 changed files with 7 additions and 5 deletions

View File

@@ -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;
}
};