1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-26 17:08:33 +01:00

make sure vault load only happens once per call

This commit is contained in:
Kyle Spearrin 2019-03-28 11:27:37 -04:00
parent b376cc5255
commit 25a43b7618

View File

@ -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) {