mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
make sure vault load only happens once per call
This commit is contained in:
@@ -163,7 +163,12 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
async load() {
|
||||
let loaded = false;
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||
if (loaded) {
|
||||
return;
|
||||
}
|
||||
loaded = true;
|
||||
await this.groupingsComponent.load();
|
||||
|
||||
if (params == null) {
|
||||
|
||||
Reference in New Issue
Block a user