diff --git a/.prettierignore b/.prettierignore index 183b3084..353e4b75 100644 --- a/.prettierignore +++ b/.prettierignore @@ -42,3 +42,5 @@ testem.log # System Files .DS_Store Thumbs.db + +/src/assets/YAML/generated/generated.yaml \ No newline at end of file diff --git a/src/app/component/activity-description/activity-description.component.ts b/src/app/component/activity-description/activity-description.component.ts index 890f4c4f..37f6abba 100644 --- a/src/app/component/activity-description/activity-description.component.ts +++ b/src/app/component/activity-description/activity-description.component.ts @@ -263,8 +263,10 @@ export class ActivityDescriptionComponent implements OnInit { false ); this.currentActivity.teamsImplemented = data['teamsImplemented']; - this.currentActivity.teamsEvidence = data['teamsEvidence']; - console.log("data['teamsEvidence']", data['teamsEvidence']); + this.currentActivity.teamsEvidence = this.defineEvidenceObject( + data['teamsEvidence'] + ); + // console.log("data['teamsEvidence']", data['teamsEvidence']); this.openall(); }); } @@ -313,6 +315,14 @@ export class ActivityDescriptionComponent implements OnInit { } } + defineEvidenceObject(dataToCheck: { [key: string]: string }): Object { + var dataToReturn: { [key: string]: string } = {}; + for (var key in dataToCheck) { + dataToReturn[key] = this.defineStringValues(dataToCheck[key], ''); + } + return dataToReturn; + } + defineImplementationObject(dataToCheck: implementation[]): implementation[] { var dataToReturn: implementation[] = []; for (var data in dataToCheck) {