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

fix(getGroupedRowModel): assign/unassign parentId #5657

Merged
merged 6 commits into from
Jul 14, 2024

Conversation

PiR1
Copy link
Contributor

@PiR1 PiR1 commented Jul 12, 2024

Fixes #4881
And Fixes #4882

Copy link

nx-cloud bot commented Jul 14, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 0615a4f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

Copy link

pkg-pr-new bot commented Jul 14, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

commit: 0615a4f

@tanstack/angular-table

npm i https://pkg.pr.new/@tanstack/angular-table@5657

@tanstack/lit-table

npm i https://pkg.pr.new/@tanstack/lit-table@5657

@tanstack/match-sorter-utils

npm i https://pkg.pr.new/@tanstack/match-sorter-utils@5657

@tanstack/qwik-table

npm i https://pkg.pr.new/@tanstack/qwik-table@5657

@tanstack/react-table

npm i https://pkg.pr.new/@tanstack/react-table@5657

@tanstack/react-table-devtools

npm i https://pkg.pr.new/@tanstack/react-table-devtools@5657

@tanstack/solid-table

npm i https://pkg.pr.new/@tanstack/solid-table@5657

@tanstack/svelte-table

npm i https://pkg.pr.new/@tanstack/svelte-table@5657

@tanstack/table-core

npm i https://pkg.pr.new/@tanstack/table-core@5657

@tanstack/vue-table

npm i https://pkg.pr.new/@tanstack/vue-table@5657


templates

@KevinVandy
Copy link
Member

I'm wondering if this is quite right yet.

image image

It appears that the rows with a depth of 2 are referencing the row at the depth of 0 as their parentId, just like the row with a depth of 1.

Using this console log

console.log('  '.repeat(row.depth), {
  name: row.original.firstName,
  id: row.id,
  parentId: row.parentId,
})

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

Successfully merging this pull request may close these issues.

parentId or getParentRow is undefined for grouped data (flat data + grouping column)
2 participants