mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-22 07:50:04 +02:00
fix load from fresh settings bug
This commit is contained in:
parent
adde4fd017
commit
a50ab68c94
@ -252,6 +252,14 @@ export class UserStateSubject<
|
||||
// * `input` needs to wait until a message flows through the pipe
|
||||
withConstraints,
|
||||
map(([loadedState, constraints]) => {
|
||||
// bypass nulls
|
||||
if (!loadedState) {
|
||||
return {
|
||||
constraints: {} as Constraints<State>,
|
||||
state: null,
|
||||
} satisfies Constrained<State>;
|
||||
}
|
||||
|
||||
const calibration = isDynamic(constraints)
|
||||
? constraints.calibrate(loadedState)
|
||||
: constraints;
|
||||
|
Loading…
Reference in New Issue
Block a user