Skip to content

Commit 0a878a7

Browse files
authored
Merge pull request #6 from blackbaud-brandonhare/master
Added check for booleans #5
2 parents da49a40 + 732c8e4 commit 0a878a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/Node/expandJObject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function recursiveProcessing(obj: any, prefix: string): void {
88
} else if (typeof obj === "string") {
99
console.log("Injecting variable : " + prefix + ", value : " + obj);
1010
tl.setVariable(prefix, obj);
11-
} else if (typeof obj === "number") {
11+
} else if (typeof obj === "number" || typeof obj === "boolean") {
1212
console.log("Injecting variable : " + prefix + ", value : " + obj.toString());
1313
tl.setVariable(prefix, obj.toString());
1414
} else {
@@ -19,4 +19,4 @@ export function recursiveProcessing(obj: any, prefix: string): void {
1919
}
2020
}
2121
}
22-
}
22+
}

0 commit comments

Comments
 (0)