From 7c3e0cba34be4c3ccc32ff74804c0c71d9700905 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 10 Oct 2018 09:59:09 -0400 Subject: [PATCH] overload defaults on options get --- src/services/passwordGeneration.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/passwordGeneration.service.ts b/src/services/passwordGeneration.service.ts index 907d766424..f5b9b083aa 100644 --- a/src/services/passwordGeneration.service.ts +++ b/src/services/passwordGeneration.service.ts @@ -184,7 +184,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr if (options == null) { this.optionsCache = DefaultOptions; } else { - this.optionsCache = options; + this.optionsCache = Object.assign({}, DefaultOptions, options); } }