mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
LS Prompt Hub: Minor fixes
This commit is contained in:
@@ -181,7 +181,6 @@ const PromptLangsmithHubDialog = ({ promptType, show, onCancel, onSubmit }) => {
|
||||
}
|
||||
}
|
||||
setSelectedPrompt(prompt)
|
||||
await new Promise((resolve) => setTimeout(resolve, 500))
|
||||
}
|
||||
|
||||
const fetchPrompts = async () => {
|
||||
@@ -201,7 +200,7 @@ const PromptLangsmithHubDialog = ({ promptType, show, onCancel, onSubmit }) => {
|
||||
})
|
||||
if (createResp.data) {
|
||||
setAvailablePrompNameList(createResp.data.repos)
|
||||
if (createResp.data.repos?.length) handleListItemClick(0, createResp.data.repos)
|
||||
if (createResp.data.repos?.length) await handleListItemClick(0, createResp.data.repos)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user