Skip to content

Commit

Permalink
also consider error codes from constraints (gardener#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
grolu authored Feb 1, 2023
1 parent a4ca2f9 commit 1bff671
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/store/modules/shoots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ function getFilteredItems (state, rootState, rootGetters) {
}
const conditions = get(item, 'status.conditions', [])
const allConditionCodes = errorCodesFromArray(conditions)
return !(isUserError(allLastErrorCodes) || isUserError(allConditionCodes))

const constraints = get(item, 'status.constraints', [])
const allConstraintCodes = errorCodesFromArray(constraints)

return !(isUserError(allLastErrorCodes) || isUserError(allConditionCodes) || isUserError(allConstraintCodes))
}
items = filter(items, predicate)
}
Expand Down

0 comments on commit 1bff671

Please sign in to comment.