mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
fix: extra fixes to csvview
This commit is contained in:
parent
5b734ff3eb
commit
29849ea38d
1 changed files with 2 additions and 7 deletions
|
|
@ -135,9 +135,7 @@ export class CSVView extends TextFileView {
|
|||
api: any = null;
|
||||
|
||||
loadDataIntoGrid() {
|
||||
console.log('Load data into grid')
|
||||
setTimeout(() => {
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
const result = parse(this.content, {
|
||||
header: true,
|
||||
skipEmptyLines: true,
|
||||
|
|
@ -146,7 +144,6 @@ export class CSVView extends TextFileView {
|
|||
...d,
|
||||
__index: i.toString()
|
||||
}))
|
||||
console.log('DATA', data)
|
||||
this.result = {
|
||||
data: data,
|
||||
fields: result.meta.fields
|
||||
|
|
@ -158,7 +155,7 @@ export class CSVView extends TextFileView {
|
|||
columns: result.meta.fields
|
||||
})
|
||||
|
||||
}, 100)
|
||||
})
|
||||
}
|
||||
|
||||
private async renderCSV() {
|
||||
|
|
@ -221,8 +218,6 @@ export class CSVView extends TextFileView {
|
|||
item.setTitle('Rename Column')
|
||||
item.onClick(() => {
|
||||
const modal = new RenameColumnModal(csvView.app, (res) => {
|
||||
console.log('RENAME', this.column, res)
|
||||
console.log('fff', csvView.result.fields)
|
||||
csvView.renameColumn(
|
||||
this.column.userProvidedColDef.headerName, res)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue