Skip to content

Commit

Permalink
fix: datatype limit in edit page (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored May 23, 2023
1 parent 6ccddbb commit 5f231a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const EditRow = (props: IEditProps) => {
]}>
<Select disabled={!(type in DataTypeTransformMap) && data.alterType !== 'ADD'} showSearch={true} onChange={onUpdateType} dropdownMatchSelectWidth={false}>
{DATA_TYPE.map(item => {
if(data.alterType !== 'ADD' && (!DataTypeTransformMap[type]?.includes(item.value) || item.value !== type)) {
if(data.alterType !== 'ADD' && !DataTypeTransformMap[type]?.includes(item.value) && item.value !== type) {
return null;
}
return (
Expand Down

0 comments on commit 5f231a8

Please sign in to comment.