mirror of
https://github.com/ansible/awx.git
synced 2026-03-29 06:45:09 -02:30
Merge pull request #13693 from mabashian/12651-workflow-convergence
Fixes bug where editing a node always defaulted to all convergence
This commit is contained in:
@@ -66,7 +66,13 @@ const getNodeToEditDefaultValues = (
|
|||||||
// There is a case where the nodeToEdit convergence value will not align with the
|
// 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 value. This allows the nodeToEdit value to take precedence over the
|
||||||
// original node object.
|
// 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.all_parents_must_converge ? 'all' : 'any';
|
||||||
}
|
}
|
||||||
return nodeToEdit?.originalNodeObject?.all_parents_must_converge
|
return nodeToEdit?.originalNodeObject?.all_parents_must_converge
|
||||||
|
|||||||
Reference in New Issue
Block a user