Remove auto-refresh of dashboards in OnParametersSetAsync
Previously, RefreshDashboards() was called automatically if the dashboards list was empty during parameter setting. This logic has been removed, so dashboards will no longer refresh automatically in this scenario.
This commit is contained in:
@@ -67,11 +67,6 @@
|
|||||||
|
|
||||||
protected override async Task OnParametersSetAsync()
|
protected override async Task OnParametersSetAsync()
|
||||||
{
|
{
|
||||||
if (dashboards.Count == 0)
|
|
||||||
{
|
|
||||||
await RefreshDashboards();
|
|
||||||
}
|
|
||||||
|
|
||||||
var requestedId = string.IsNullOrWhiteSpace(DashboardId) || string.Equals(DashboardId, "default", StringComparison.OrdinalIgnoreCase)
|
var requestedId = string.IsNullOrWhiteSpace(DashboardId) || string.Equals(DashboardId, "default", StringComparison.OrdinalIgnoreCase)
|
||||||
? null
|
? null
|
||||||
: DashboardId;
|
: DashboardId;
|
||||||
|
|||||||
Reference in New Issue
Block a user