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: Missing Syntax in Data Table Sorting Guide Documentation #7064

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

naaa760
Copy link

@naaa760 naaa760 commented Mar 27, 2025

Bug Description

Issue Type: Documentation error
Component Affected: Data Table sorting guide
Location: https://ui.shadcn.com/docs/components/data-table#update-datatable-1

The Problem
The code example in the Data Table sorting guide is missing a closing bracket and comma
The state: { sorting } object in the useReactTable configuration is not properly closed
This creates a syntax error for users who copy-paste the code directly

Impact
Users following the documentation will encounter JavaScript syntax errors
Developers need to manually fix the code after copying from documentation
Creates confusion for beginners learning how to implement table sorting

Copy link

vercel bot commented Mar 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui-v2 ❌ Failed (Inspect) Mar 27, 2025 10:50pm

Copy link

vercel bot commented Mar 27, 2025

Someone is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant