Skip to content

Commit

Permalink
apply metadata fix to card body
Browse files Browse the repository at this point in the history
  • Loading branch information
kentico-ericd committed Jun 3, 2024
1 parent 6fac338 commit 30f483f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/KInspector.Blazor/Components/Actions/ActionCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,14 @@


@code {
private ModuleDetails? moduleDetails;

[Parameter, EditorRequired]
public IAction? Action { get; set; }

public ModuleResults Results { get; set; } = new();

private ActionOptionForm? Form { get; set; }

private ModuleDetails ModuleDetails => moduleDetails ??= moduleMetadataService.GetModuleDetails(Action!.Codename);
private ModuleDetails ModuleDetails => moduleMetadataService.GetModuleDetails(Action!.Codename);

private MarkupString LongDescription => new MarkupString(Markdown.ToHtml(ModuleDetails.LongDescription ?? string.Empty));

Expand Down
4 changes: 1 addition & 3 deletions src/KInspector.Blazor/Components/Reports/ReportCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@


@code {
private ModuleDetails? moduleDetails;

[Parameter, EditorRequired]
public IReport? Report { get; set; }

public ModuleResults Results { get; set; } = new();

private ModuleDetails ModuleDetails => moduleDetails ??= moduleMetadataService.GetModuleDetails(Report!.Codename);
private ModuleDetails ModuleDetails => moduleMetadataService.GetModuleDetails(Report!.Codename);

private MarkupString LongDescription => new MarkupString(Markdown.ToHtml(ModuleDetails.LongDescription ?? string.Empty));

Expand Down

0 comments on commit 30f483f

Please sign in to comment.