Fix bug where page crashed if attempting to view system job node without extra vars

This commit is contained in:
mabashian 2021-07-12 13:29:01 -04:00
parent 874b497794
commit 1e30e33d30

View File

@ -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)