table
table copied to clipboard
chore: Remove unnecessary `console.error` log from `table.getColumn(id)` implementation
The getColumn method is already typed to return Column<TData, unknown> | undefined, indicating to callers that the result might be undefined. The current console.error logging when a column is not found:
- Adds noise in development environments
- Can mask actual issues
- Forces users to implement workarounds (as discussed in https://github.com/TanStack/table/discussions/5505)
This change removes the error logging while maintaining the expected return type, allowing consumers to handle undefined columns as already expected by the API.
Is anybody available to review this?