fix: broken status parse due to empty category (#3233)

* fix: broken status parse due to empty category

* cortex 0.5.0-7

---------

Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
This commit is contained in:
Louis 2024-08-02 12:19:51 +07:00 committed by GitHub
parent 13428d60e7
commit 68714eeaf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.5.0-5
0.5.0-7

View File

@ -1,7 +1,7 @@
import { ModelHubCategory } from '@/hooks/useModelHub'
export const getTitleByCategory = (category: ModelHubCategory) => {
if (!category) return ''
if (!category || !category.length) return ''
switch (category) {
case 'BuiltInModels':
return 'Built-in Models'