consolidate Clone logic for Resource objects

This commit is contained in:
sbwalker
2024-03-08 19:33:09 -05:00
parent 7f74e79253
commit 8e287da7b5
7 changed files with 53 additions and 38 deletions

View File

@ -271,7 +271,7 @@
protected override async Task OnParametersSetAsync()
{
// repopulate the SiteState service based on the values passed in the SiteState parameter (this is how state is marshalled across the render mode boundary)
ComponentSiteState.Clone(SiteState);
ComponentSiteState.Hydrate(SiteState);
_canViewAdminDashboard = CanViewAdminDashboard();
if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.PermissionList))