Skip to content

Commit 689c2ba

Browse files
author
Warren Buckley
committed
Nullable fixes InlingSvg TagHelper
1 parent e9fd986 commit 689c2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Our.Umbraco.TagHelpers/InlineSvgTagHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public InlineSvgTagHelper(MediaFileManager mediaFileManager, IWebHostEnvironment
3030
/// NOTE: You cannot use this in conjuction with the media-item attribute
3131
/// </summary>
3232
[HtmlAttributeName("src")]
33-
public string FileSource { get; set; }
33+
public string? FileSource { get; set; }
3434

3535
/// <summary>
3636
/// An IPublishedContent Umbraco Media Item that has an .svg file extension
3737
/// NOTE: You cannot use this in conjuction with the src attribute
3838
/// </summary>
3939
[HtmlAttributeName("media-item")]
40-
public IPublishedContent MediaItem { get; set; }
40+
public IPublishedContent? MediaItem { get; set; }
4141

4242
public override void Process(TagHelperContext context, TagHelperOutput output)
4343
{

0 commit comments

Comments
 (0)