From 88f0dfc8cc3c02939d26f63e0e884d057189a5e1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 1 Sep 2021 13:33:05 +0200 Subject: [PATCH] web/admin: fallback for invitation list on first load Signed-off-by: Jens Langhammer --- web/src/pages/stages/invitation/InvitationListLink.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/pages/stages/invitation/InvitationListLink.ts b/web/src/pages/stages/invitation/InvitationListLink.ts index 8ff9c8682..8af265728 100644 --- a/web/src/pages/stages/invitation/InvitationListLink.ts +++ b/web/src/pages/stages/invitation/InvitationListLink.ts @@ -48,6 +48,9 @@ export class InvitationListLink extends LitElement { designation: FlowsInstancesListDesignationEnum.Enrollment, }) .then((flows) => { + if (!this.selectedFlow && flows.results.length > 0) { + this.selectedFlow = flows.results[0].slug; + } return flows.results.map((flow) => { return html`