fix: model active indicator only show when model activated (#1110)

This commit is contained in:
Faisal Amir 2023-12-20 14:59:13 +07:00 committed by GitHub
parent e0370210a7
commit c68d0371a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,12 +46,12 @@ const BottomBar = () => {
)}
{!stateModel.loading && downloadedModels.length !== 0 && (
<SystemItem
name="Active model:"
name={activeModel?.id ? 'Active model:' : ''}
value={
activeModel?.id || (
<Badge themes="outline" className="pl-1">
<ShortCut menu="E" />
&nbsp; to show your model
&nbsp; to view models
</Badge>
)
}