Skip to content

Commit

Permalink
chore: rm Object.values (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ authored Dec 2, 2021
1 parent 99c78e4 commit 4a7431a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ const OptionList: React.ForwardRefRenderFunction<
);
}

const omitFieldNameList = Object.values(fillFieldNames(fieldNames));
const filledFieldNames = fillFieldNames(fieldNames);
const omitFieldNameList = Object.keys(filledFieldNames).map((key) => filledFieldNames[key]);

const renderItem = (index: number) => {
const item = memoFlattenOptions[index];
Expand Down

1 comment on commit 4a7431a

@vercel
Copy link

@vercel vercel bot commented on 4a7431a Dec 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.