Skip to content

Commit

Permalink
chore(useFormEvents): 消除checkIsRangeSlider 校验类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Oct 9, 2023
1 parent 49d40d6 commit e25af8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/src/hooks/useFormEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function getDefaultValue(
}

function checkIsRangeSlider(schema: FormSchema) {
if (schema.component === 'Slider' && schema.componentProps && schema.componentProps.range) {
if (schema.component === 'Slider' && schema.componentProps && 'range' in schema.componentProps) {
return true;
}
}
Expand Down

0 comments on commit e25af8d

Please sign in to comment.