Skip to content

Commit 8414317

Browse files
committed
fix null pointer in assignAPIs
1 parent b53b4f2 commit 8414317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/table-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export function assignAPIs<
241241
obj: TObject extends Record<string, infer U> ? U : never, // table, row, cell, column, header
242242
apis: Array<API<TDeps, NoInfer<TDepArgs>>>,
243243
): void {
244-
const table = (obj.table ?? obj) as Table_Internal<TFeatures, TData>
244+
const table = (obj._table ?? obj) as Table_Internal<TFeatures, TData>
245245
apis.forEach(({ fn, memoDeps }) => {
246246
const { fnKey, fnName, parentName } = getFunctionNameInfo(fn)
247247

0 commit comments

Comments
 (0)