Skip to content

Commit ed53471

Browse files
committed
fix(ui): the mock's build write set includes the managed sources it loads
1 parent 0646048 commit ed53471

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/src/lib/api/mock/operate-store.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ export class MockOperate {
11201120
const writable = selection.filter((n) => !isSource(n));
11211121
const writeSet =
11221122
parts.verb === 'build'
1123-
? writable.filter((n) => !(parts.flags['--no-load'] && snapshotNode(n)?.kind === 'loader'))
1123+
? [...new Set([...writable, ...selection.flatMap((n) => snapshotNode(n)?.upstream ?? []).filter(isManaged)])].filter((n) => !(parts.flags['--no-load'] && isManaged(n)))
11241124
: parts.verb === 'seed'
11251125
? writable.filter((n) => snapshotNode(n)?.kind === 'seed')
11261126
: parts.verb === 'load'

0 commit comments

Comments
 (0)