From a98a8bda9bea5b7bb4459cea9413e0f03b2aa068 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 29 Oct 2018 22:41:19 -0400 Subject: [PATCH] init function --- src/angular/components/add-edit.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/angular/components/add-edit.component.ts b/src/angular/components/add-edit.component.ts index 3a2f42ed07..607c95b691 100644 --- a/src/angular/components/add-edit.component.ts +++ b/src/angular/components/add-edit.component.ts @@ -132,6 +132,10 @@ export class AddEditComponent implements OnInit { } async ngOnInit() { + await this.init(); + } + + async init() { const myEmail = await this.userService.getEmail(); this.ownershipOptions.push({ name: myEmail, value: null }); const orgs = await this.userService.getAllOrganizations();