Commit 3cc4b155 authored by Dheeraj Joshi's avatar Dheeraj Joshi

Fix pipeline summary when empty response

This change handles the  case when the graphl
endpoint for summary returns null
parent 331c5d85
......@@ -28,7 +28,7 @@ export default {
},
update(data) {
const summary = data?.project?.pipeline?.securityReportSummary;
return Object.keys(summary).length ? summary : null;
return summary && Object.keys(summary).length ? summary : null;
},
skip() {
return !this.glFeatures.pipelinesSecurityReportSummary;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment