Minor fix (for an edge case) in collection mapper.

This commit is contained in:
Julien Fontanet 2013-12-18 12:43:32 +01:00
parent 54dc3e5a71
commit 3dd66e40f8

View File

@ -22,7 +22,7 @@ module.exports = (refsToUUIDs) ->
helper = (value) ->
if value instanceof Array
(helper value_ for value_ in value)
else if refsToUUIDs[value]
else if refsToUUIDs[value] isnt undefined
refsToUUIDs[value]
else
value