From 59be13de07143e546284c75d00ea98c9159aa573 Mon Sep 17 00:00:00 2001
From: Valentin Popov <valentin@popov.link>
Date: Thu, 5 Feb 2026 13:45:40 +0000
Subject: Enhance checkbox-list custom field functionality

- Added CheckboxListEnumInput component for handling enumeration inputs.
- Updated CheckboxListDefaultInput to support new options structure.
- Integrated validation for checkbox list options using Yup.
- Modified package.json and package-lock.json to include new dependencies.
- Improved admin interface with enhanced input handling and validation feedback.
---
 admin/src/components/CheckboxListInput.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'admin/src/components/CheckboxListInput.tsx')

diff --git a/admin/src/components/CheckboxListInput.tsx b/admin/src/components/CheckboxListInput.tsx
index 51a0d22..07d2776 100644
--- a/admin/src/components/CheckboxListInput.tsx
+++ b/admin/src/components/CheckboxListInput.tsx
@@ -26,14 +26,14 @@ const getEnumValues = (attribute: CheckboxListInputProps['attribute']): string[]
     return [];
   }
 
-  if (Array.isArray(attribute.enum)) {
-    return attribute.enum;
-  }
-
   if (Array.isArray(attribute.options?.enum)) {
     return attribute.options.enum;
   }
 
+  if (Array.isArray(attribute.enum)) {
+    return attribute.enum;
+  }
+
   return [];
 };
 
-- 
cgit v1.2.3

