mirror of https://github.com/portainer/portainer
parent
1e24451cc9
commit
7abed624d9
|
@ -117,9 +117,10 @@ export function IngressForm({
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const namespaces = namespacesOptions.map((option) => option.value);
|
const namespaces = namespacesOptions.map((option) => option.value);
|
||||||
if (
|
if (
|
||||||
|
!isEdit &&
|
||||||
!namespaces.includes(namespace) &&
|
!namespaces.includes(namespace) &&
|
||||||
namespaces.length > 0 &&
|
namespaces.length > 0 &&
|
||||||
(!isIngressNamesLoading || isEdit)
|
!isIngressNamesLoading
|
||||||
) {
|
) {
|
||||||
handleNamespaceChange(namespaces[0]);
|
handleNamespaceChange(namespaces[0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue