@tanstack/svelte-table 8.8.5 → 8.9.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-table",
3
3
  "author": "Tanner Linsley",
4
- "version": "8.8.5",
4
+ "version": "8.9.0",
5
5
  "description": "Headless UI for building powerful tables & datagrids for Svelte.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/tanstack/table#readme",
@@ -42,7 +42,7 @@
42
42
  "src"
43
43
  ],
44
44
  "dependencies": {
45
- "@tanstack/table-core": "8.8.5"
45
+ "@tanstack/table-core": "8.9.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "svelte": "^3.49.0"
package/src/index.ts CHANGED
@@ -53,6 +53,7 @@ export function flexRender(component: any, props: any) {
53
53
 
54
54
  if (typeof component === 'function') {
55
55
  const result = component(props)
56
+ if (result === null || result === undefined) return null
56
57
 
57
58
  if (isSvelteComponent(result)) {
58
59
  return renderComponent(result, props)