Skip to content

Commit

Permalink
Fix YT JS creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 1, 2025
1 parent 19eef95 commit 6fd3f7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)

protected override async Task OnParametersSetAsync()
{
if (_player == null && Video != null)
if (_player == null && Video != null && _youtubeCustomModule != null)
{
ArgumentNullException.ThrowIfNull(_youtubeCustomModule);

Expand Down

0 comments on commit 6fd3f7a

Please sign in to comment.