Merge pull request #1931 from zzmzaizai/dev

Fixed first render js bug
This commit is contained in:
Shaun Walker 2022-01-12 13:57:13 -05:00 committed by GitHub
commit cfe8059176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,7 @@ namespace Oqtane.Modules
// base lifecycle method for handling JSInterop script registration // base lifecycle method for handling JSInterop script registration
protected override async Task OnAfterRenderAsync(bool firstRender) protected override async Task OnInitializedAsync()
{
if (firstRender)
{ {
if (Resources != null && Resources.Exists(item => item.ResourceType == ResourceType.Script)) if (Resources != null && Resources.Exists(item => item.ResourceType == ResourceType.Script))
{ {
@ -64,7 +62,6 @@ namespace Oqtane.Modules
} }
} }
} }
}
// path method // path method