diff --git a/packages/mantine-react-table/src/column.utils.ts b/packages/mantine-react-table/src/column.utils.ts index 63168e446..a84b0fddc 100644 --- a/packages/mantine-react-table/src/column.utils.ts +++ b/packages/mantine-react-table/src/column.utils.ts @@ -101,8 +101,9 @@ export const prepareColumns = = {}>({ } if (columnDef?.accessorFn) { + const originalAccessorFn = columnDef.accessorFn columnDef.accessorFn = (...args) => - !isLoading && columnDef.accessorFn!(...args); + !isLoading && originalAccessorFn(...args); } //assign filterFns