summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/batch-command.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-18 16:01:35 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-18 16:01:35 +0200
commit8bdc894690752b1a9b29beb98d128eb0eec27d42 (patch)
tree8a7160ad15569ca7bc6e0c96867c7183cd3f0a46 /apps/web/src/lib/commands/batch-command.ts
parent0387bd4c80f699cf0272fa0165d3c86dceaf39dc (diff)
downloadopencut-8bdc894690752b1a9b29beb98d128eb0eec27d42.tar.gz
fix: migrate commands to CommandResult selection contract
Diffstat (limited to 'apps/web/src/lib/commands/batch-command.ts')
-rw-r--r--apps/web/src/lib/commands/batch-command.ts4
1 files changed, 2 insertions, 2 deletions
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;
}
}