Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
hemati committed Feb 25, 2024
1 parent 847686f commit 7428068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/ui/src/api/marketplaces.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import client from './client'

const getAllChatflowsMarketplaces = () => client.get('/marketplaces/chatflows')
const getAllChatflowsMarketplacesNew = () => client.get('/marketplaces/templates')
const getAllToolsMarketplaces = () => client.get('/marketplaces/tools')
const getAllTemplatesFromMarketplaces = () => client.get('/marketplaces/templates')

export default {
getAllChatflowsMarketplaces,
getAllToolsMarketplaces,
getAllTemplatesFromMarketplaces
getAllTemplatesFromMarketplaces,
getAllChatflowsMarketplacesNew
}
2 changes: 1 addition & 1 deletion packages/ui/src/views/simplehub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SimpleHub = () => {
const [isChatflowsLoading, setChatflowsLoading] = useState(true)
const [images, setImages] = useState({})

const getAllChatflowsMarketplacesApi = useApi(marketplacesApi.getAllChatflowsMarketplaces)
const getAllChatflowsMarketplacesApi = useApi(marketplacesApi.getAllChatflowsMarketplacesNew)

useEffect(() => {
getAllChatflowsMarketplacesApi.request()
Expand Down

0 comments on commit 7428068

Please sign in to comment.