@tanstack/table-core 8.5.16 → 8.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/core/column.js +3 -0
- package/build/cjs/core/column.js.map +1 -1
- package/build/esm/index.js +3 -0
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +310 -310
- package/build/umd/index.development.js +3 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/core/column.ts +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/table-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.5.
|
|
4
|
+
"version": "8.5.17",
|
|
5
5
|
"description": "Headless UI for building powerful tables & datagrids for TS/JS.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/table#readme",
|
package/src/core/column.ts
CHANGED
|
@@ -56,6 +56,11 @@ export function createColumn<TData extends RowData, TValue>(
|
|
|
56
56
|
|
|
57
57
|
for (const key of accessorKey.split('.')) {
|
|
58
58
|
result = result[key]
|
|
59
|
+
if (process.env.NODE_ENV !== 'production' && result === undefined) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
`"${key}" in deeply nested key "${accessorKey}" returned undefined.`
|
|
62
|
+
)
|
|
63
|
+
}
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
return result
|