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