diff options
author | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-01-21 10:56:15 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2021-01-21 15:20:28 +0000 |
commit | 32111c9725557d556a73929898264b4b338bb3d6 (patch) | |
tree | 2e985436a47e6a3aba79ba32f18af2d677612d00 /openecomp-ui/src/sdc-app/onboarding | |
parent | 5c5d4e5aa06d7fd4618caf19279ce5a6efb26ce8 (diff) |
Fix empty file list after import service CSAR in VSP
Change-Id: Id8e7cb7b71d4cd8d852946b6ff365054e551c005
Issue-ID: SDC-3438
Signed-off-by: Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js index f02953857b..a34dfe7b04 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js @@ -139,9 +139,10 @@ const mapValidationDataToTree = (validationData, packageName) => { type: 'heat', header: true, errors: errors, - children: heat - ? heat.map(mapHeatData) - : nested ? nested.map(mapHeatData) : [] + children: + heat && heat.length + ? heat.map(mapHeatData) + : nested ? nested.map(mapHeatData) : [] }, ...(artifacts ? [ |