Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Jan 30, 2024
1 parent 8e2511d commit c7e6e84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Lombiq.HelpfulExtensions.Extensions.ContentSets.ViewModels;
using Lombiq.HelpfulLibraries.OrchardCore.Contents;
using Microsoft.Extensions.Localization;
using Newtonsoft.Json.Linq;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Display.ContentDisplay;
using OrchardCore.ContentManagement.Display.Models;
Expand Down Expand Up @@ -52,7 +51,7 @@ await model.InitializeAsync(
new ContentTypePartDefinition(
name,
await _contentDefinitionManager.GetPartDefinitionAsync(nameof(ContentSetPart)),
new JObject()),
[]),
isNew: false);
})
.Location(CommonContentDisplayTypes.Detail, CommonLocationNames.Content)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class OrchardExportToRecipeConverter : IOrchardExportToRecipeConverter
private readonly IEnumerable<IOrchardContentConverter> _contentConverters;
private readonly IEnumerable<IOrchardUserConverter> _userConverters;

private readonly ICollection<string> _contentTypes;
private readonly List<string> _contentTypes;

public OrchardExportToRecipeConverter(
IContentDefinitionManager contentDefinitionManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void AddIfNotNullOrEmpty(string name, string value)
}
}

if (shapeMetadata.Alternates.Any())
if (shapeMetadata.Alternates.Count != 0)
{
builder.AppendHtml("Alternates: ");
builder.AppendHtmlLine(string.Join(", ", shapeMetadata.Alternates));
Expand All @@ -49,7 +49,7 @@ void AddIfNotNullOrEmpty(string name, string value)
builder.AppendHtmlLine(string.Join(", ", shapeMetadata.BindingSources));
}

if (shapeMetadata.Wrappers.Any())
if (shapeMetadata.Wrappers.Count != 0)
{
builder.AppendHtml("Wrappers: ");
builder.AppendHtmlLine(string.Join(", ", shapeMetadata.Wrappers));
Expand Down

0 comments on commit c7e6e84

Please sign in to comment.