Skip to content

Commit

Permalink
BUG: [UI]fix favorite bug. (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiboyasss authored Jun 27, 2024
1 parent 82c07f7 commit 66c66b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ const LaunchModelComponent = ({ modelType, gpuAvailable }) => {
!completeDeleteArr.includes(registration.model_name)
)
} else {
return collectionArr.includes(registration.model_name)
return collectionArr?.includes(registration.model_name)
}
} else if (filterArr.length > 1) {
return (
registration.cache_status &&
!completeDeleteArr.includes(registration.model_name) &&
collectionArr.includes(registration.model_name)
collectionArr?.includes(registration.model_name)
)
}

Expand Down
4 changes: 2 additions & 2 deletions xinference/web/ui/src/scenes/launch_model/launchLLM.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ const LaunchLLM = ({ gpuAvailable }) => {
const judge = registration.model_specs.some((spec) => filterCache(spec))
return judge && !completeDeleteArr.includes(registration.model_name)
} else {
return collectionArr.includes(registration.model_name)
return collectionArr?.includes(registration.model_name)
}
} else if (statusArr.length > 1) {
const judge = registration.model_specs.some((spec) => filterCache(spec))
return (
judge &&
!completeDeleteArr.includes(registration.model_name) &&
collectionArr.includes(registration.model_name)
collectionArr?.includes(registration.model_name)
)
}

Expand Down

0 comments on commit 66c66b7

Please sign in to comment.