mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Fixes bug where editing a node always defaulted to all convergence
This commit is contained in:
parent
46227f14a1
commit
4302348e8e
@ -66,7 +66,13 @@ const getNodeToEditDefaultValues = (
|
||||
// There is a case where the nodeToEdit convergence value will not align with the
|
||||
// original node object value. This allows the nodeToEdit value to take precedence over the
|
||||
// original node object.
|
||||
if (nodeToEdit) {
|
||||
if (
|
||||
nodeToEdit &&
|
||||
Object.prototype.hasOwnProperty.call(
|
||||
nodeToEdit,
|
||||
'all_parents_must_converge'
|
||||
)
|
||||
) {
|
||||
return nodeToEdit.all_parents_must_converge ? 'all' : 'any';
|
||||
}
|
||||
return nodeToEdit?.originalNodeObject?.all_parents_must_converge
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user