mirror of https://github.com/portainer/portainer
fix reloading page when ing class disallowed (#7830)
parent
191f8e17ee
commit
669327da7c
|
@ -175,7 +175,7 @@ export function CreateIngressView() {
|
|||
(!existingIngressClass ||
|
||||
(existingIngressClass && !existingIngressClass.Availability)) &&
|
||||
ingressRule.IngressClassName &&
|
||||
ingressControllersResults.data
|
||||
!ingressControllersResults.isLoading
|
||||
) {
|
||||
ingressClassOptions.push({
|
||||
label: !ingressRule.IngressType
|
||||
|
@ -206,7 +206,7 @@ export function CreateIngressView() {
|
|||
!!params.name &&
|
||||
ingressesResults.data &&
|
||||
!ingressRule.IngressName &&
|
||||
ingressControllersResults.data
|
||||
!ingressControllersResults.isLoading
|
||||
) {
|
||||
// if it is an edit screen, prepare the rule from the ingress
|
||||
const ing = ingressesResults.data?.find(
|
||||
|
@ -221,6 +221,7 @@ export function CreateIngressView() {
|
|||
setIngressRule(r);
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
params.name,
|
||||
ingressesResults.data,
|
||||
|
|
Loading…
Reference in New Issue