mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
fix: marketplace collection condition
This commit is contained in:
@ -8,6 +8,5 @@ export const getValidTagKeys = (tags: string[]) => {
|
||||
}
|
||||
|
||||
export const getValidCategoryKeys = (category?: string) => {
|
||||
const currentCategory = categoryKeys.find(key => key === category)
|
||||
return currentCategory ? `${currentCategory}s` : ''
|
||||
return categoryKeys.find(key => key === category)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user