Skip to content

Commit

Permalink
fix: import papaparse
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntler committed Jan 3, 2023
1 parent 10d2d30 commit 87462d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/csv/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import styled from "styled-components";
import { parse } from "papaparse";
import papaparse from "papaparse";
import { DocRenderer } from "../..";
import { textFileLoader } from "../../utils/fileLoaders";

Expand All @@ -11,7 +11,7 @@ const CSVRenderer: DocRenderer = ({

useEffect(() => {
if (currentDocument?.fileData) {
const parseResult = parse(currentDocument.fileData as string, {
const parseResult = papaparse.parse(currentDocument.fileData as string, {
delimiter: config?.csvDelimiter ?? ",",
});

Expand Down

0 comments on commit 87462d4

Please sign in to comment.