Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mlqn committed Nov 12, 2024
1 parent 3343470 commit f66aa96
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ private void FindIdOccurrencesRecursive(JsonNode node, string oldComponentId, st
{
case "component": // Objects that references components i.e. in `rowsAfter` in RepeatingGroup
case "componentRef": // Components that are used in summary components will have this ref
if (property.Value is JsonValue jsonValue
&& jsonValue.TryGetValue(out string value)
&& value == oldComponentId
)
if (property.Value?.ToString() == oldComponentId)
{
jsonObject[property.Key] = newComponentId;
}
Expand Down

0 comments on commit f66aa96

Please sign in to comment.