fix: brown paper bag issue at referencing the same literal object instance
[e-mobility-charging-stations-simulator.git] / src / performance / PerformanceStatistics.ts
index 956b8d3606b31c5554f802061b457149d4051a1c..69829ff186e71fd1aca40e465b1c4b654084c8fc 100644 (file)
@@ -226,7 +226,7 @@ export class PerformanceStatistics {
     const entryName = entry.name;
     // Initialize command statistics
     if (!this.statistics.statisticsData.has(entryName)) {
-      this.statistics.statisticsData.set(entryName, Constants.EMPTY_OBJECT);
+      this.statistics.statisticsData.set(entryName, {});
     }
     // Update current statistics
     this.statistics.updatedAt = new Date();