From 1e30e33d300ef73c756c55c9bc25d0b35ed08865 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 12 Jul 2021 13:29:01 -0400 Subject: [PATCH] Fix bug where page crashed if attempting to view system job node without extra vars --- .../Modals/NodeModals/NodeViewModal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeViewModal.js b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeViewModal.js index d5903cf5ef..4e7c01127e 100644 --- a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeViewModal.js +++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeViewModal.js @@ -139,7 +139,8 @@ function NodeViewModal({ readOnly }) { if ( launchConfig.ask_variables_on_launch || launchConfig.survey_enabled || - fullUnifiedJobTemplate.type === 'system_job_template' + (fullUnifiedJobTemplate.type === 'system_job_template' && + promptValues.extra_data) ) { overrides.extra_vars = jsonToYaml( JSON.stringify(promptValues.extra_data)