Skip to content

Commit

Permalink
Merge pull request #6069 from WiXSL/fix-typo-var
Browse files Browse the repository at this point in the history
Fix typo in variable
  • Loading branch information
Luwangel authored Mar 22, 2021
2 parents c5260d1 + cefa3f5 commit fe24333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-core/src/dataProvider/useGetList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../types';
import useQueryWithStore from './useQueryWithStore';

const defautlPagination = { page: 1, perPage: 25 };
const defaultPagination = { page: 1, perPage: 25 };
const defaultSort = { field: 'id', order: 'DESC' };
const defaultFilter = {};
const defaultIds = [];
Expand Down Expand Up @@ -61,7 +61,7 @@ const defaultData = {};
*/
const useGetList = <RecordType extends Record = Record>(
resource: string,
pagination: PaginationPayload = defautlPagination,
pagination: PaginationPayload = defaultPagination,
sort: SortPayload = defaultSort,
filter: object = defaultFilter,
options?: UseDataProviderOptions
Expand Down

0 comments on commit fe24333

Please sign in to comment.