Skip to content

Commit

Permalink
BUG: [UI] Fix registration page bug. (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiboyasss authored Sep 15, 2024
1 parent 4c5e752 commit 91c0fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xinference/web/ui/src/scenes/register_model/registerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,12 @@ const RegisterModelComponent = ({ modelType, customData }) => {

const handleFamilyAlert = () => {
if (
formData.model_ability.includes('vision') &&
formData.model_ability?.includes('vision') &&
!family?.vision?.includes(formData.model_family)
) {
return true
} else if (
formData.model_ability.includes('tools') &&
formData.model_ability?.includes('tools') &&
!family?.tools?.includes(formData.model_family)
) {
return true
Expand Down

0 comments on commit 91c0fe8

Please sign in to comment.