Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useAntdTable): typo #1879

Merged
merged 2 commits into from
Sep 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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