Skip to content

Commit

Permalink
fix(useAntdTable): typo (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
KangXinzhi committed Sep 16, 2022
1 parent 114dfa1 commit 26a703d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hooks/src/useAntdTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const useAntdTable = <TData extends Data, TParams extends Params>(
const isAntdV4 = !!form?.getInternalHooks;

// get current active field values
const getActivetFieldValues = () => {
const getActiveFieldValues = () => {
if (!form) {
return {};
}
Expand All @@ -69,7 +69,7 @@ const useAntdTable = <TData extends Data, TParams extends Params>(
if (!form) {
return Promise.resolve({});
}
const activeFieldsValue = getActivetFieldValues();
const activeFieldsValue = getActiveFieldValues();
const fields = Object.keys(activeFieldsValue);

// antd 4
Expand Down Expand Up @@ -109,7 +109,7 @@ const useAntdTable = <TData extends Data, TParams extends Params>(
};

const changeType = () => {
const activeFieldsValue = getActivetFieldValues();
const activeFieldsValue = getActiveFieldValues();
allFormDataRef.current = {
...allFormDataRef.current,
...activeFieldsValue,
Expand Down

0 comments on commit 26a703d

Please sign in to comment.