1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 04:03:29 +00:00

Update libs/tools/generator/extensions/history/src/key-definitions.ts

Co-authored-by:  Audrey  <ajensen@bitwarden.com>
This commit is contained in:
Matt Gibson
2025-07-16 14:07:06 -04:00
committed by GitHub
parent 45630c5147
commit 29a57ce61f

View File

@@ -15,7 +15,7 @@ export const GENERATOR_HISTORY = SecretKeyDefinition.array(
"localGeneratorHistory",
SecretClassifier.allSecret<GeneratedCredential>(),
{
deserializer: (obj) => GeneratedCredential.fromJSON(obj!),
deserializer: (obj) => obj && GeneratedCredential.fromJSON(obj),
clearOn: ["logout"],
},
);