mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
Link derived state fake to parent observable. (#7922)
This commit is contained in:
@@ -198,7 +198,7 @@ export class FakeDerivedStateProvider implements DerivedStateProvider {
|
||||
let result = this.states.get(deriveDefinition.buildCacheKey()) as DerivedState<TTo>;
|
||||
|
||||
if (result == null) {
|
||||
result = new FakeDerivedState<TTo>();
|
||||
result = new FakeDerivedState(parentState$, deriveDefinition, dependencies);
|
||||
this.states.set(deriveDefinition.buildCacheKey(), result);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user