1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix ISO time columns when no column names #66

This commit is contained in:
lana-k
2021-07-15 22:36:07 +02:00
parent fb930028de
commit 0f2dc9f11e
3 changed files with 9 additions and 7 deletions

View File

@@ -24,7 +24,9 @@ export default {
return resultRow
})
} else {
result.values = source.data
result.values = source.data.map(row => row.map(value =>
value instanceof Date ? value.toISOString(): value
))
result.columns = []
for (let i = 1; i <= source.data[0].length; i++) {
result.columns.push(`col${i}`)