diff --git a/src/Client/ViewModels/MainWindowViewModel.cs b/src/Client/ViewModels/MainWindowViewModel.cs index 1216d58..db4e965 100644 --- a/src/Client/ViewModels/MainWindowViewModel.cs +++ b/src/Client/ViewModels/MainWindowViewModel.cs @@ -63,7 +63,7 @@ private async Task NewWorkbookAsync( { var path = await this.NewWorkbookSpecifyPathInteraction.Handle(Unit.Default); - if (path == null) + if (string.IsNullOrEmpty(path)) { // We don't have access to the observable subscription or CTS here since it's eaten by Avalonia. throw new TaskCanceledException(); @@ -78,7 +78,7 @@ private async Task LoadWorkbookAsync( { var path = await this.LoadWorkbookSpecifyPathInteraction.Handle(Unit.Default); - if (path == null) + if (string.IsNullOrEmpty(path)) { // We don't have access to the observable subscription or CTS here since it's eaten by Avalonia. throw new TaskCanceledException(); diff --git a/src/Client/Workbooks/Views/RequestWorkbookItem.axaml.cs b/src/Client/Workbooks/Views/RequestWorkbookItem.axaml.cs index 9e533b1..f4f481e 100644 --- a/src/Client/Workbooks/Views/RequestWorkbookItem.axaml.cs +++ b/src/Client/Workbooks/Views/RequestWorkbookItem.axaml.cs @@ -45,7 +45,7 @@ public RequestWorkbookItem() .PointerReleased .Select(_ => this.ViewModel?.RequestModel) .Where(requestModel => requestModel != null) - .InvokeCommand(this, view => view.ViewModel!.OpenRequestCommand) + .InvokeCommand(this, view => view.ViewModel!.OpenRequestCommand!) .DisposeWith(disposables); }); }