diff --git a/project/src/context/ApplicationContext.ts b/project/src/context/ApplicationContext.ts index 870be807..5389df23 100644 --- a/project/src/context/ApplicationContext.ts +++ b/project/src/context/ApplicationContext.ts @@ -64,7 +64,7 @@ export class ApplicationContext public clearValues(type: ContextVariableType): void { - this.variables.has(type) + if (this.variables.has(type)) { this.variables.delete(type); }