Properly default also the performance storage enablement
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 8 Dec 2021 15:47:52 +0000 (16:47 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 8 Dec 2021 15:47:52 +0000 (16:47 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Configuration.ts

index 3e5948efbfba43fbd457284a0182ca67c564701f..2e8ef2e9097f4665f2587debe7578b9a7ef6145d 100644 (file)
@@ -60,7 +60,9 @@ export default class Configuration {
     if (Configuration.objectHasOwnProperty(Configuration.getConfig(), 'performanceStorage')) {
       storageConfiguration =
       {
-        ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'enabled') && { enabled: Configuration.getConfig().performanceStorage.enabled },
+        ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'enabled')
+          ? { enabled: Configuration.getConfig().performanceStorage.enabled }
+          : { enabled: false },
         ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'type')
           ? { type: Configuration.getConfig().performanceStorage.type }
           : { type: StorageType.JSON_FILE },