Skip to content

Commit

Permalink
Merge pull request #406 from kac89/dev
Browse files Browse the repository at this point in the history
fix docx
  • Loading branch information
kac89 authored Aug 16, 2024
2 parents 859ed8e + 6dcf2e4 commit 830b601
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/app/report/report.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2165,18 +2165,21 @@ Date | Description

const buildrefs = (x) => {
let refArray = [];
const ref = this.decryptedReportDataChanged.report_vulns[x].ref.split('\n');
for (var i = 0; i < ref.length; i++) {
refArray.push(
if(this.decryptedReportDataChanged.report_vulns[x].ref.length > 0) {
const ref = this.decryptedReportDataChanged.report_vulns[x].ref.toString().split('\n');
for (var i = 0; i < ref.length; i++) {
refArray.push(

new TextRun({
text: ref[i],
break: 1,
})
new TextRun({
text: ref[i],
break: 1,
})

);
);

}
}

return refArray;
};

Expand Down

0 comments on commit 830b601

Please sign in to comment.