Merge pull request 'Mitigated null error' (#77) from feature/64-dialog_clearing_bug into dev
continuous-integration/drone/push Build is passing Details

Reviewed-on: #77
This commit is contained in:
Nicolai Ort 2021-02-20 16:03:45 +00:00
commit 32024cf2c5
1 changed files with 4 additions and 1 deletions

View File

@ -45,9 +45,12 @@
let teams = [];
RunnerTeamService.runnerTeamControllerGetAll().then((val) => {
teams = val;
if (opened_from === "RunnerOverview") {
if (opened_from === "RunnerOverview" && teams.length>0) {
selected_org_or_team = "TEAM_" + teams[0].id;
}
if(teams.length==0 && orgs.length>0){
selected_org_or_team = "ORG_" + orgs[0].id
}
});
let selected_org;
$: selected_org_or_team = "";