Skip to content

Commit 45b969a

Browse files
committed
Fixed a bug in Post page where it would throw an exception looking at a draft because drafts don't have a release date yet
1 parent fa8c80a commit 45b969a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ProgrammerAl.Site/ProgrammerAl.Site/Pages/Post.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ protected override async Task OnParametersSetAsync()
4141

4242
private bool ShouldPostRequestFeedback()
4343
{
44-
if (PostData is null)
44+
if (PostData is null
45+
|| PostData.Metadata.ReleaseDate == DateOnly.MinValue)//Drafts
4546
{
4647
return false;
4748
}

0 commit comments

Comments
 (0)