Skip to content

Commit

Permalink
small refactor for trying to fix sonarqube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
joao4all committed Jun 19, 2024
1 parent 15fc1a5 commit 6380841
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,18 @@ protected override async Task OnThingChanged()
this.RowsTarget.Clear();
this.RowsSource.Clear();

this.CurrentThing.Element.ForEach(e =>
foreach (var element in this.CurrentThing.Element)
{
this.Elements.Add(e);
this.Elements.AddRange(e.ContainedElement);
});
this.Elements.Add(element);
this.Elements.AddRange(element.ContainedElement);
}

foreach (var element in this.Elements)
{
this.RowsTarget.Add(new ElementDefinitionRowViewModel(element));
this.RowsSource.Add(new ElementDefinitionRowViewModel(element));
}

this.Elements.ForEach(e => this.RowsTarget.Add(new ElementDefinitionRowViewModel(e)));
this.Elements.ForEach(e => this.RowsSource.Add(new ElementDefinitionRowViewModel(e)));
this.AddParameterViewModel.InitializeViewModel(this.CurrentThing);
this.ElementDefinitionCreationViewModel.InitializeViewModel(this.CurrentThing);

Expand Down

0 comments on commit 6380841

Please sign in to comment.