Skip to content

Commit 1497747

Browse files
fixed cleanObject output for @value = 0 (#163)
* fixed cleanObject output for @value = 0 Signed-off-by: NeelParihar <[email protected]>
1 parent ba669f0 commit 1497747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/query/woqlCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ WOQLQuery.prototype.cleanObject = function (o, t) {
344344
t = t || 'xsd:boolean';
345345
obj.data = this.jlt(o, t);
346346
} else if (typeof o === 'object' && o) {
347-
if (o['@value']) obj.data = o;
347+
if (typeof o['@value'] !== 'undefined') obj.data = o;
348348
else return o;
349349
// eslint-disable-next-line no-dupe-else-if
350350
} else if (typeof o === 'boolean') {

0 commit comments

Comments
 (0)