diff --git a/app/react/kubernetes/ingresses/CreateIngressView/IngressForm.tsx b/app/react/kubernetes/ingresses/CreateIngressView/IngressForm.tsx index f5c997f15..36e474976 100644 --- a/app/react/kubernetes/ingresses/CreateIngressView/IngressForm.tsx +++ b/app/react/kubernetes/ingresses/CreateIngressView/IngressForm.tsx @@ -117,9 +117,10 @@ export function IngressForm({ useEffect(() => { const namespaces = namespacesOptions.map((option) => option.value); if ( + !isEdit && !namespaces.includes(namespace) && namespaces.length > 0 && - (!isIngressNamesLoading || isEdit) + !isIngressNamesLoading ) { handleNamespaceChange(namespaces[0]); }