Skip to content

Commit

Permalink
fix showing default ns for ingresses on edit (#10196)
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat-portainer committed Aug 29, 2023
1 parent 1e24451 commit 7abed62
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 7abed62

Please sign in to comment.