Skip to content

Commit

Permalink
Modify the array traversal method
Browse files Browse the repository at this point in the history
  • Loading branch information
crudboy committed Apr 14, 2023
1 parent 20d65f7 commit 7b4c962
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/Document/components/AddAndUpdateApiDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class AddAndUpdateApiDoc extends Component {
initialValue: rpcType
})(
<Select>
{Object.values(RPCTYPE).map((e, i) => {
{RPCTYPE.map((e, i) => {
return (
<Select.Option key={`${e} ${i}`} value={e}>
{e}
Expand All @@ -283,7 +283,7 @@ class AddAndUpdateApiDoc extends Component {
initialValue: state
})(
<Radio.Group buttonStyle="solid">
{Object.values(STATE_TYPE).map((e, i) => {
{STATE_TYPE.map((e, i) => {
return (
<Radio.Button key={`${e} ${i}`} value={i}>
{e}
Expand Down Expand Up @@ -362,7 +362,7 @@ class AddAndUpdateApiDoc extends Component {
initialValue: apiSource
})(
<Select>
{Object.values(API_SOURCE_TYPE).map((e, i) => {
{API_SOURCE_TYPE.map((e, i) => {
return (
<Select.Option key={`${e} ${i}`} value={i}>
{e}
Expand Down

0 comments on commit 7b4c962

Please sign in to comment.