Commit 1a019052 by Daniel Lee

mysql: convert numbers to text for annotation tooltip

parent 6d136452
...@@ -138,7 +138,7 @@ export default class ResponseParser { ...@@ -138,7 +138,7 @@ export default class ResponseParser {
list.push({ list.push({
annotation: options.annotation, annotation: options.annotation,
time: Math.floor(row[timeColumnIndex]) * 1000, time: Math.floor(row[timeColumnIndex]) * 1000,
text: row[textColumnIndex], text: row[textColumnIndex] ? row[textColumnIndex].toString() : '',
tags: row[tagsColumnIndex] ? row[tagsColumnIndex].trim().split(/\s*,\s*/) : [], tags: row[tagsColumnIndex] ? row[tagsColumnIndex].trim().split(/\s*,\s*/) : [],
}); });
} }
......
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