From 6fd3f7a972e60cf6aed4ecf2ff3d52b13b705221 Mon Sep 17 00:00:00 2001 From: Foxocube Date: Wed, 1 Jan 2025 18:00:48 +0000 Subject: [PATCH] Fix YT JS creation --- .../MediaFeeder/Providers/Youtube/YouTubeVideoFrame.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaFeeder/MediaFeeder/Providers/Youtube/YouTubeVideoFrame.razor.cs b/MediaFeeder/MediaFeeder/Providers/Youtube/YouTubeVideoFrame.razor.cs index 01c1146..0623ce6 100644 --- a/MediaFeeder/MediaFeeder/Providers/Youtube/YouTubeVideoFrame.razor.cs +++ b/MediaFeeder/MediaFeeder/Providers/Youtube/YouTubeVideoFrame.razor.cs @@ -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);