Merge pull request #563 from langflow-ai/fix-restore-flow

fix: Handle providers in Restore Flow
This commit is contained in:
pushkala-datastax 2025-12-02 09:55:17 -08:00 committed by GitHub
commit 2de83c2619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -652,10 +652,9 @@ function KnowledgeSourcesPage() {
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
})
.then(() => {
// Only reset form values if the API call was successful
// Flow restoration is complete - backend already updated flow with current provider/model
// Just reset the UI form value for system prompt
setSystemPrompt(DEFAULT_AGENT_SETTINGS.system_prompt);
// Trigger model update to default model
handleModelChange(DEFAULT_AGENT_SETTINGS.llm_model);
closeDialog(); // Close after successful completion
})
.catch((error) => {