map: Properly default value in translation

A better option is to pre-process all inputs, but I need a quick
fix to my stupidity.  0||""==="".

* src/current/compiler/map.xsl (lvmc:compile)[lvm:map//lvm:from[*]]: Correct oval default.
master
Mike Gerwitz 2019-02-01 16:01:42 -05:00
parent c7fec6a240
commit 22aa59b5cf
1 changed files with 1 additions and 1 deletions

View File

@ -745,7 +745,7 @@
<!-- TODO: support arbitrary depth -->
<!-- oval = orig val -->
<text>(function(oval){</text>
<text>var val = Array.isArray(oval) ? oval : [oval||'']; </text>
<text>var val = Array.isArray(oval) ? oval : [oval===undefined?'':oval]; </text>
<text>var ret = []; </text>
<if test="$nested-depth = 0">