mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
fix showing default ns for ingresses on edit (#10196)
This commit is contained in:
parent
1e24451cc9
commit
7abed624d9
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue