protected override async Task OnParametersSetAsync() { try { UI = await TreeService.GetCollectionAsync(CollectionAlias, ParentPath); NodesVisible = NodesVisible || (UI?.DefaultOpenEntities ?? false); if (Mediator.GetLatestEventArgs <NavigationEventArgs>() is NavigationEventArgs @event) { await LocationChangedAsync(this, @event); } } catch (UnauthorizedAccessException) { UI = TreeCollectionUI.None; } catch (Exception ex) { UI = null; Error = ex.Message; } StateHasChanged(); }