Revert "Fixed first render js bug"

This commit is contained in:
Shaun Walker 2022-01-12 14:07:50 -05:00 committed by GitHub
parent cfe8059176
commit dda71e5ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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