1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

fix csv result when column names have spaces #59

This commit is contained in:
lana-k
2021-06-17 12:23:44 +02:00
parent 2abd42c9c3
commit cf4b83f7d4
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export default {
result.columns = source.meta.fields.map(col => col.trim())
result.values = source.data.map(row => {
const resultRow = []
result.columns.forEach(col => { resultRow.push(row[col]) })
source.meta.fields.forEach(col => { resultRow.push(row[col]) })
return resultRow
})
} else {