mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 18:59:41 +02:00
fix showing default ns for ingresses on edi (#10197)
This commit is contained in:
parent
4ca45e89c5
commit
6d203033c1
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue