1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

fix showing default ns for ingresses on edit (#10196)

This commit is contained in:
Prabhat Khera 2023-08-29 15:12:40 +12:00 committed by GitHub
parent 1e24451cc9
commit 7abed624d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);
}