From 8bdc894690752b1a9b29beb98d128eb0eec27d42 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 18 Apr 2026 16:01:35 +0200 Subject: fix: migrate commands to CommandResult selection contract --- apps/web/src/lib/commands/batch-command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/web/src/lib/commands/batch-command.ts') diff --git a/apps/web/src/lib/commands/batch-command.ts b/apps/web/src/lib/commands/batch-command.ts index ea23411c..c4ee7e0b 100644 --- a/apps/web/src/lib/commands/batch-command.ts +++ b/apps/web/src/lib/commands/batch-command.ts @@ -10,7 +10,7 @@ export class BatchCommand extends Command { for (const command of this.commands) { const result = command.execute(); - if (result?.select !== undefined) { + if (result?.selection !== undefined) { latestSelectionResult = result; } } @@ -29,7 +29,7 @@ export class BatchCommand extends Command { for (const command of this.commands) { const result = command.redo(); - if (result?.select !== undefined) { + if (result?.selection !== undefined) { latestSelectionResult = result; } } -- cgit v1.3.1