From bf20a7fc15f1c3d17a1b5c37fd2e272eece83657 Mon Sep 17 00:00:00 2001
From: mohammad <mohammad.alayoub@mni.thm.de>
Date: Tue, 18 May 2021 17:02:58 +0200
Subject: [PATCH] fixed delete the keywords after merging them

---
 .../topic-cloud-administration.component.ts                | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

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 6c85a9dd7..89c6dd912 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 {
-- 
GitLab