mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-22 07:50:04 +02:00
fix null dereference error
This commit is contained in:
parent
1b0318ed4e
commit
cb964d8a98
@ -63,7 +63,7 @@ function getConstraint<Key extends keyof AnyConstraint>(
|
||||
) {
|
||||
if (policy && key in policy) {
|
||||
return policy[key] ?? config[key];
|
||||
} else if (key in config) {
|
||||
} else if (config && key in config) {
|
||||
return config[key];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user