From 2f91315ac75fcb866d2153784e6b9afe448e650e Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Fri, 24 Nov 2023 10:58:32 +1300 Subject: [PATCH] fix(namespace): handle undefined registry options [EE-6366] (#10683) Co-authored-by: testa113 --- .../components/RegistriesFormSection/RegistriesSelector.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/react/kubernetes/namespaces/components/RegistriesFormSection/RegistriesSelector.tsx b/app/react/kubernetes/namespaces/components/RegistriesFormSection/RegistriesSelector.tsx index e06c26b83..fd952e268 100644 --- a/app/react/kubernetes/namespaces/components/RegistriesFormSection/RegistriesSelector.tsx +++ b/app/react/kubernetes/namespaces/components/RegistriesFormSection/RegistriesSelector.tsx @@ -9,14 +9,14 @@ import { Link } from '@@/Link'; interface Props { value: MultiValue; onChange(value: MultiValue): void; - options: Registry[]; + options?: Registry[]; inputId?: string; } export function RegistriesSelector({ value, onChange, - options, + options = [], inputId, }: Props) { const { isAdmin } = useCurrentUser();