Another rule compiler fix.

This commit is contained in:
Adam Ierymenko 2017-03-28 22:25:24 -07:00
parent b959148447
commit 3f4f7145a3
3 changed files with 8 additions and 5 deletions

View file

@ -26,9 +26,10 @@ if (err) {
let tagsArray = [];
for(let n in tags) {
let t = tags[n];
let dfl = t['default'];
tagsArray.push({
'id': t.id,
'default': t['default']||null
'default': (((dfl)||(dfl === 0)) ? dfl : null)
});
}