Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenamedHeaders not present in metadata #115

Open
Robouste opened this issue Oct 17, 2023 · 0 comments
Open

RenamedHeaders not present in metadata #115

Robouste opened this issue Oct 17, 2023 · 0 comments

Comments

@Robouste
Copy link

Describe the bug

Trying to parse a csv with duplicate column names and config header: true will rename duplicate headers but will not add the information in the meta properties of the parse result.

To Reproduce

Please provide the necessary steps to reproduce the unwanted behaviour.

this.papa.parse(file, {
        worker: true,
        header: true,
        skipEmptyLines: true,
        complete: (results: ParseResult<{[key: string]: string}[]>) => {
             console.log(results);
        }
}

Expected behavior

According to the documentation, I should see something in ParseResult.meta.renamedHeaders

Software and platform

  • OS: Windows 10
  • Browser: Chrome
  • Version: 118.0.5993.70
  • Angular version: 16.1.8
  • Angular CLI version: 16.1.8
  • Node version: 16.14.2

Additional context

I'm using ngx-papaperse v8.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant