Skip to content

Commit

Permalink
Tidy - Load nodes can sometimes be blank
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Oct 4, 2023
1 parent 4ef98be commit 9f13b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions uSync.BackOffice/Services/uSyncService_Single.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public IEnumerable<uSyncAction> ImportPartial(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
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ private IPropertyType GetOrCreateProperty(TObject item,

if (dataType == null)
{
logger.LogWarning("Cannot find underling DataType {key} {alias} for {property} it is likely you are missing a package?", definitionKey, propertyEditorAlias, alias);
logger.LogWarning("Cannot find underling DataType {key} {alias} for {property} - Either your datatypes are out of sync or you are missing a package?", definitionKey, propertyEditorAlias, alias);
return null;
}

Expand Down

0 comments on commit 9f13b7d

Please sign in to comment.