Skip to content

Commit 96fd6e0

Browse files
committed
fix: pipe on startWithUndefined for undefined input
1 parent e5529f7 commit 96fd6e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libs/angular-three-postprocessing/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"peerDependencies": {
2525
"@angular/common": "^15.1.0",
2626
"@angular/core": "^15.1.0",
27+
"angular-three": "^1.0.0",
2728
"postprocessing": "^6.0.0"
2829
},
2930
"dependencies": {

libs/angular-three-postprocessing/src/lib/effect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function componentInputsToCombinedStream(
7575
return combineLatest(
7676
inputs.reduce((combined, input) => {
7777
let input$ = component.select(input);
78-
if (component.get(input) !== undefined) {
78+
if (component.get(input) === undefined) {
7979
input$ = input$.pipe(startWithUndefined());
8080
}
8181
combined[input] = input$;

0 commit comments

Comments
 (0)