Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
mlqn committed Jan 6, 2025
1 parent f837897 commit 55c8500
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.RegularExpressions;
using System.Threading;
Expand Down Expand Up @@ -703,23 +702,6 @@ private async Task<bool> UpdateLayoutReferences(AltinnAppGitRepository altinnApp
}
}
break;
case "Summary":
string componentRef = component["componentRef"]?.GetValue<string>();
if (deletedComponentIdsFromCurrentLayoutSet.Contains(componentRef))
{
component["componentRef"] = "";
hasLayoutChanges = true;
}
else
{
Reference updatedReference = updatedComponentsFromCurrentLayoutSet.FirstOrDefault(item => item.Id == componentRef);
if (updatedReference != null)
{
component["componentRef"] = updatedReference.NewId;
hasLayoutChanges = true;
}
}
break;
case "Summary2":
if (component["target"] is JsonObject target)
{
Expand Down

0 comments on commit 55c8500

Please sign in to comment.