refactor(ui): harden context menu event handling and simplify bindings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mika Kuns
2026-04-13 15:16:09 +02:00
parent 5d5a583af0
commit 7838f081dd
4 changed files with 6 additions and 5 deletions

View File

@@ -74,8 +74,6 @@ public partial class TaskListViewModel : ViewModelBase
[RelayCommand(CanExecute = nameof(CanAddTask))]
private async Task AddTask()
{
if (CurrentListId is null) return;
// Get list default commit type
var list = await _listRepo.GetByIdAsync(CurrentListId);
var defaultCommitType = list?.DefaultCommitType ?? "chore";