mirror of https://github.com/portainer/portainer
fix showing default ns for ingresses on edi (#10197)
parent
4ca45e89c5
commit
6d203033c1
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue