Commit e1b82e72 by Adrián López Committed by Torkel Ödegaard

Fix empty value tags and comma separated values (#7289)

When a tag doesn't have a value it was showing a empty 'bubble'.
If value has several values separated by commas, make a 'bubble' for
each one.
parent 94e90179
......@@ -98,7 +98,8 @@ function (_, TableModel) {
annotation: self.annotation,
time: + new Date(value[timeCol]),
title: value[titleCol],
tags: tagsCol.map(function(t) { return value[t]; }),
// Remove empty values, then split in different tags for comma separated values
tags: _.flatten(tagsCol.filter(function (t) { return value[t]; }).map(function(t) { return value[t].split(","); })),
text: value[textCol]
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment