Skip to content
Snippets Groups Projects
Commit bf20a7fc authored by Mohammad Alayoub's avatar Mohammad Alayoub
Browse files

fixed delete the keywords after merging them

parent 5c966a11
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment