Skip to content

Commit

Permalink
Merge pull request #314 from KevinVandy/recursion-error
Browse files Browse the repository at this point in the history
Recursion error
  • Loading branch information
alessandrojcm authored Apr 15, 2024
2 parents b135837 + 0d7f334 commit c680d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mantine-react-table/src/column.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ export const prepareColumns = <TData extends Record<string, any> = {}>({
}

if (columnDef?.accessorFn) {
const originalAccessorFn = columnDef.accessorFn
columnDef.accessorFn = (...args) =>
!isLoading && columnDef.accessorFn!(...args);
!isLoading && originalAccessorFn(...args);
}

//assign filterFns
Expand Down

0 comments on commit c680d40

Please sign in to comment.