From 46f489185e19a58f044e97967fa474d867834af6 Mon Sep 17 00:00:00 2001 From: ivarmu <26822043+ivarmu@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:37:32 +0100 Subject: [PATCH] fixes problems with workflow nodes information section --- awx/ui/src/components/PromptDetail/PromptDetail.js | 14 ++++++++++---- .../Modals/NodeModals/NodeViewModal.js | 5 ++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/awx/ui/src/components/PromptDetail/PromptDetail.js b/awx/ui/src/components/PromptDetail/PromptDetail.js index adb09b55f2..f2438a4e7f 100644 --- a/awx/ui/src/components/PromptDetail/PromptDetail.js +++ b/awx/ui/src/components/PromptDetail/PromptDetail.js @@ -257,12 +257,15 @@ function PromptDetail({ numChips={5} ouiaId="prompt-job-tag-chips" totalChips={ - !overrides.job_tags || overrides.job_tags === '' + overrides.job_tags === undefined || overrides.job_tags === null || overrides.job_tags === '' ? 0 : overrides.job_tags.split(',').length } > - {overrides.job_tags.length > 0 && + {overrides.job_tags !== undefined && + overrides.job_tags !== null && + overrides.job_tags !== '' && + overrides.job_tags.length > 0 && overrides.job_tags.split(',').map((jobTag) => ( - {overrides.skip_tags.length > 0 && + {overrides.skip_tags !== undefined && + overrides.skip_tags !== null && + overrides.skip_tags !== '' && + overrides.skip_tags.length > 0 && overrides.skip_tags.split(',').map((skipTag) => (