mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
use map
This commit is contained in:
@@ -20,10 +20,7 @@ export class LoginData {
|
||||
this.totp = data.totp;
|
||||
|
||||
if (data.uris) {
|
||||
this.uris = [];
|
||||
data.uris.forEach((u) => {
|
||||
this.uris.push(new LoginUriData(u));
|
||||
});
|
||||
this.uris = data.uris.map((u) => new LoginUriData(u));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user