mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fix bug where identifier is undefined
This commit is contained in:
parent
231cccbb19
commit
a4f263bc92
@ -38,11 +38,17 @@ function WorkflowNodeHelp({ node }) {
|
||||
const unifiedJobTemplate =
|
||||
node?.fullUnifiedJobTemplate ||
|
||||
node?.originalNodeObject?.summary_fields?.unified_job_template;
|
||||
const identifier =
|
||||
node?.identifier ||
|
||||
(!stringIsUUID(node?.originalNodeObject?.identifier)
|
||||
? node.originalNodeObject.identifier
|
||||
: null);
|
||||
let identifier = null;
|
||||
if (node?.identifier) {
|
||||
({ identifier } = node);
|
||||
} else if (
|
||||
node?.originalNodeObject?.identifier &&
|
||||
!stringIsUUID(node.originalNodeObject.identifier)
|
||||
) {
|
||||
({
|
||||
originalNodeObject: { identifier },
|
||||
} = node);
|
||||
}
|
||||
if (unifiedJobTemplate || job) {
|
||||
const type = unifiedJobTemplate
|
||||
? unifiedJobTemplate.unified_job_type || unifiedJobTemplate.type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user