Fixed some stuff not getting checked against null

ref #39 gosh i sometimes hate js types
This commit is contained in:
2020-12-20 18:18:32 +01:00
parent fbe2b358bd
commit 7a4238f1f7
10 changed files with 15 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ export class UpdateRunnerTeam extends CreateRunnerGroup {
parentGroup: RunnerOrganisation;
public async getParent(): Promise<RunnerOrganisation> {
if (this.parentGroup === undefined) {
if (this.parentGroup === undefined || this.parentGroup === null) {
throw new RunnerTeamNeedsParentError();
}
if (!isNaN(this.parentGroup.id)) {