Skip to content

Commit 1f0ace0

Browse files
fixed bug with non-text nodes
1 parent b6bd9f4 commit 1f0ace0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Utils.removeNamespacesFromVariables = function(vars) {
262262
* Utility function to extract a value from a config rule - if the value is a variable, take the value of that variable instead
263263
*/
264264
Utils.getConfigValue = function(val, row) {
265-
val = this.removeNamespaceFromVariable(val)
265+
if (typeof val == 'string') val = this.removeNamespaceFromVariable(val)
266266
if (typeof val == 'string' && row[val]) {
267267
var rad = row[val]
268268
if (rad && rad['@value']) return rad['@value']

0 commit comments

Comments
 (0)