Browse Source

refactor(nc-gui): import only necessary portions from papaparse

pull/3801/head
braks 2 years ago
parent
commit
6f483ed0f1
  1. 4
      packages/nc-gui/utils/parsers/CSVTemplateAdapter.ts

4
packages/nc-gui/utils/parsers/CSVTemplateAdapter.ts

@ -1,4 +1,4 @@
import Papaparse from 'papaparse'
import { parse } from 'papaparse'
import TemplateGenerator from './TemplateGenerator'
export default class CSVTemplateAdapter extends TemplateGenerator {
@ -24,7 +24,7 @@ export default class CSVTemplateAdapter extends TemplateGenerator {
}
async init() {
this.csv = Papaparse.parse(this.csvData, { header: true })
this.csv = parse(this.csvData, { header: true })
}
parseData() {

Loading…
Cancel
Save