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:
parent
13428d60e7
commit
68714eeaf9
@ -1 +1 @@
|
||||
0.5.0-5
|
||||
0.5.0-7
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user