From 3a92e104da91d33d164e2d2ac0eb945f1aadf8eb Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 29 Jul 2022 09:22:25 +0200 Subject: [PATCH] fix TypeError for account-selection type "primary_group" --- api/js/etemplate/Et2Select/Et2SelectAccount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2SelectAccount.ts b/api/js/etemplate/Et2Select/Et2SelectAccount.ts index 3d752450ca..f9ec6ec657 100644 --- a/api/js/etemplate/Et2Select/Et2SelectAccount.ts +++ b/api/js/etemplate/Et2Select/Et2SelectAccount.ts @@ -60,7 +60,7 @@ export class Et2SelectAccount extends Et2Select { return []; } - let select_options : Array; + let select_options : Array = []; // for primary_group we only display owngroups == own memberships, not other groups if (type === 'primary_group' && this.accountType !== 'accounts') {