mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 09:01:06 +03:00
add default limit to 100
This commit is contained in:
@@ -1077,7 +1077,8 @@ export class App {
|
|||||||
headers['x-api-key'] = decryptedCredentialData.langsmithApiKey
|
headers['x-api-key'] = decryptedCredentialData.langsmithApiKey
|
||||||
|
|
||||||
const tags = req.body.tags ? `tags=${req.body.tags}` : ''
|
const tags = req.body.tags ? `tags=${req.body.tags}` : ''
|
||||||
const url = `https://web.hub.langchain.com/repos/?${tags}has_commits=true&sort_field=num_likes&sort_direction=desc&is_archived=false`
|
// Default to 100, TODO: add pagination and use offset & limit
|
||||||
|
const url = `https://web.hub.langchain.com/repos/?limit=100&${tags}has_commits=true&sort_field=num_likes&sort_direction=desc&is_archived=false`
|
||||||
axios.get(url, headers).then((response) => {
|
axios.get(url, headers).then((response) => {
|
||||||
if (response.data.repos) {
|
if (response.data.repos) {
|
||||||
return res.json({ status: 'OK', repos: response.data.repos })
|
return res.json({ status: 'OK', repos: response.data.repos })
|
||||||
|
|||||||
@@ -232,6 +232,7 @@ const NodeInputHandler = ({ inputAnchor, inputParam, data, disabled = false, isA
|
|||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
width: '100%'
|
width: '100%'
|
||||||
}}
|
}}
|
||||||
|
disabled={disabled}
|
||||||
sx={{ borderRadius: 25, width: '100%', mb: 2, mt: 0 }}
|
sx={{ borderRadius: 25, width: '100%', mb: 2, mt: 0 }}
|
||||||
variant='outlined'
|
variant='outlined'
|
||||||
onClick={() => onShowPromptHubButtonClicked()}
|
onClick={() => onShowPromptHubButtonClicked()}
|
||||||
|
|||||||
Reference in New Issue
Block a user