From 45ecec5623029a9cba918c59f29d6444a26ccd4e Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 25 Apr 2023 22:06:16 -0700
Subject: [PATCH] Fix dropdown Private items with empty set

---
 .../app/components/common/input/select/select.component.ts    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src-ui/src/app/components/common/input/select/select.component.ts b/src-ui/src/app/components/common/input/select/select.component.ts
index 3d81f6f49..73f2a3a8d 100644
--- a/src-ui/src/app/components/common/input/select/select.component.ts
+++ b/src-ui/src/app/components/common/input/select/select.component.ts
@@ -43,8 +43,8 @@ export class SelectComponent extends AbstractInputComponent<number> {
   }
 
   checkForPrivateItems(value: any) {
-    if (Array.isArray(value) && value.length > 0) {
-      value.forEach((id) => this.checkForPrivateItem(id))
+    if (Array.isArray(value)) {
+      if (value.length > 0) value.forEach((id) => this.checkForPrivateItem(id))
     } else {
       this.checkForPrivateItem(value)
     }