diff --git a/CSETWebApi/CSETWeb_Api/CSETWeb_ApiCore/Documents/NIST.SP.800-218.pdf b/CSETWebApi/CSETWeb_Api/CSETWeb_ApiCore/Documents/NIST.SP.800-218.pdf new file mode 100644 index 0000000000..0158f4eb30 Binary files /dev/null and b/CSETWebApi/CSETWeb_Api/CSETWeb_ApiCore/Documents/NIST.SP.800-218.pdf differ diff --git a/CSETWebNg/src/app/assessment/questions/references-display/references-display.component.ts b/CSETWebNg/src/app/assessment/questions/references-display/references-display.component.ts index 3383034853..2155db6215 100644 --- a/CSETWebNg/src/app/assessment/questions/references-display/references-display.component.ts +++ b/CSETWebNg/src/app/assessment/questions/references-display/references-display.component.ts @@ -73,13 +73,17 @@ export class ReferencesDisplayComponent implements OnInit { const list: ReferenceDocLink[] = []; docList?.forEach(ref => { + ref.fileName = ref.fileName?.trim(); + ref.title = ref.title?.trim(); + ref.url = ref.url?.trim(); + let listDoc: ReferenceDocLink = list.find(d => d.fileName == ref.fileName && d.title == ref.title); if (!listDoc) { listDoc = { fileId: ref.fileId, - fileName: ref.fileName?.trim(), - title: ref.title?.trim(), - url: ref.url?.trim(), + fileName: ref.fileName, + title: ref.title, + url: ref.url, isUploaded: ref.isUploaded, bookmarks: [] }; diff --git a/CSETWebNg/src/app/assessment/questions/references-section/references-section.component.ts b/CSETWebNg/src/app/assessment/questions/references-section/references-section.component.ts index e42fc8595c..a3aae096fe 100644 --- a/CSETWebNg/src/app/assessment/questions/references-section/references-section.component.ts +++ b/CSETWebNg/src/app/assessment/questions/references-section/references-section.component.ts @@ -10,7 +10,7 @@ import { ResourceLibraryService } from '../../../services/resource-library.servi }) export class ReferencesSectionComponent { - @Input() documents; + @Input() documents: any[]; @Input('q') question: any;