diff --git a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts index 6c85a9dd719d3ecff484a050f55e533c56d604b1..89c6dd912f12edd600fe17dbdf03c0fbb4b28620 100644 --- a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts +++ b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts @@ -225,14 +225,11 @@ export class TopicCloudAdministrationComponent implements OnInit { integrateIfKeywordExists(keyword: Keyword, keyname: string) { const key = this.checkIfKeywordExists(keyname); if (key !== undefined){ - const integratedKeyword = keyword; key.questions.map(question => { - integratedKeyword.questions.push(question); + keyword.questions.push(question); }); - this.keywords.push(integratedKeyword); this.deleteKeyword(key); - this.deleteKeyword(keyword); - } + } } checkIfKeywordExists(key: string): Keyword {