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:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user