Skip to content

Commit

Permalink
fix for execution-prompt js
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jul 20, 2024
1 parent b975990 commit e555188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansibleguy-webui/aw/static/js/jobs/manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function updateApiTableDataJob(row, row2, entry) {
} else {
actionsTemplate = actionsTemplate.replaceAll('${EXEC_ID_1}', 0);
}
if (entry.execution_prompts.includes(PROMPT_ENFORCE)) {
if (is_set(entry.execution_prompts) && entry.execution_prompts.includes(PROMPT_ENFORCE)) {
actionsTemplate = actionsTemplate.replaceAll('${disable}', 'disabled');
} else {
actionsTemplate = actionsTemplate.replaceAll('${disable}', '');
Expand Down

0 comments on commit e555188

Please sign in to comment.