path fix
This commit is contained in:
@@ -17,6 +17,7 @@ public partial class Stats : ComponentBase, IDisposable
|
||||
private string _errorRate = "";
|
||||
private string _statisticsDetails = "";
|
||||
private StatisticsVM? _subscribedVm;
|
||||
private bool _disposed;
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
@@ -43,6 +44,8 @@ public partial class Stats : ComponentBase, IDisposable
|
||||
|
||||
private async void OnPropertyChanged(object? sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (_disposed) return;
|
||||
|
||||
_sessionStarted = ViewModel?.SessionStarted ?? "";
|
||||
_recipeName = ViewModel?.RecipeName ?? "";
|
||||
_processingTime = ViewModel?.ProcessingTime ?? "";
|
||||
@@ -57,6 +60,7 @@ public partial class Stats : ComponentBase, IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_disposed = true;
|
||||
Unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user