Skip to content

Commit

Permalink
https://github.com/DASISH/qddt-client/issues/770
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNorland committed Jan 19, 2022
1 parent c41a22a commit 4508236
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/modules/home/concept/concept-tree-node.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ export class TreeNodeComponent {

async onToggleEdit(edit, conceptId) {
if (!edit.isVisible){


// const find = (root, conceptId) =>
// root.id === conceptId ? root :
// root.children?.reduce((result, n) => result || find(n, conceptId), undefined)

///TODO fix recursive update replace
let index = this.concepts.findIndex( concept => concept.id == conceptId)
this.concepts[index] = await this.homeService.get(this.CONCEPT,conceptId )
}
Expand Down

0 comments on commit 4508236

Please sign in to comment.