Skip to content

Commit

Permalink
load node from disk if its not in the ordered node listings.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Oct 3, 2023
1 parent d46ce81 commit 2b845ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uSync.BackOffice/Services/uSyncService_Single.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public IEnumerable<uSyncAction> ReportPartial(IList<OrderedNodeInfo> orderedNode

foreach (var item in orderedNodes.Skip(options.PageNumber * options.PageSize).Take(options.PageSize))
{
if (item.Node == null)
item.Node = XElement.Load(item.FileName);

var itemType = item.Node.GetItemType();
if (!itemType.InvariantEquals(lastType))
{
Expand Down Expand Up @@ -341,7 +344,7 @@ public OrderedNodeInfo(string filename, XElement node)
{
FileName = filename;
Node = node;
Key = node.GetKey();
Key = node?.GetKey() ?? Guid.Empty;
}

/// <summary>
Expand Down

0 comments on commit 2b845ff

Please sign in to comment.