1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

SG-680 - OrgDomain.service - replace delete with splice as delete doesn't actually alter array. Duh.

This commit is contained in:
Jared Snider
2022-12-08 17:50:47 -05:00
parent e57faf2e63
commit 19e7513d65

View File

@@ -54,7 +54,7 @@ export class OrgDomainService implements OrgDomainInternalServiceAbstraction {
);
if (index !== -1) {
// existing
delete existingOrgDomains[index];
existingOrgDomains.splice(index, 1);
} else {
// eslint-disable-next-line no-console
console.warn(`Unable to delete OrgDomainId: ${orgDomainId}`);