Skip to content

Commit 882014c

Browse files
committed
complete test for CONFIG
1 parent b75fd7b commit 882014c

13 files changed

Lines changed: 1754 additions & 526 deletions

File tree

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

build/CONFIG.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ class CONFIG extends InheritClass_1.InheritClass {
6565
Logger_1.logger.debug("No config value for: " + name);
6666
_value = _default;
6767
}
68-
return Processor_1.GlobalProcessor.processObject(_value) || _default;
68+
const processedValue = Processor_1.GlobalProcessor.processObject(_value);
69+
// Special handling for null values
70+
if (_value === null && processedValue === null) {
71+
return null;
72+
}
73+
return processedValue || _default;
6974
}
7075
static _instance;
7176
static get instance() {

build/Processor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class Processor extends InheritClass_1.InheritClass {
5555
return template;
5656
}
5757
processObject(obj, component = null) {
58+
// If obj is null or undefined, return it as is
59+
if (obj === null || obj === undefined) {
60+
return obj;
61+
}
5862
let __instance__ = (component === null) ? (this) : (component.processorHandler);
5963
if (typeof __instance__ === "undefined") {
6064
__instance__ = new Processor({ component });

0 commit comments

Comments
 (0)