-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The imported flow configuration cannot be automatically saved #5665
Comments
To resolve the issue where the imported flow configuration in your self-hosted Dify version 0.6.5 cannot be automatically saved, and to address the JavaScript error Here are some steps to troubleshoot and resolve the issue:
Here is the relevant part of the code that handles saving the document.getElementById('save-button').addEventListener('click', function (e) {
e.preventDefault();
const chatbotUrl = document.getElementById('chatbot-url').value;
const errorTip = document.getElementById('error-tip');
if (chatbotUrl.trim() === "") {
errorTip.textContent = "Dify ChatBot URL cannot be empty.";
} else {
errorTip.textContent = "";
chrome.storage.sync.set({
'chatbotUrl': chatbotUrl,
}, function () {
alert('Save Success!');
});
}
}); And the part that loads the chrome.storage.sync.get(['chatbotUrl'], function (result) {
const chatbotUrlInput = document.getElementById('chatbot-url');
if (result.chatbotUrl) {
chatbotUrlInput.value = result.chatbotUrl;
}
}); Ensure that the |
It's not the URL, because when you delete all the nodes, it's automatically saved |
Imported **.yml file code nodes with the following two lines will not refresh automatically.
|
Self Checks
Dify version
0.6.5
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
The imported flow configuration cannot be automatically saved
Current BUG module:chat flow
✔️ Expected Behavior
automatically saved
❌ Actual Behavior
The imported flow configuration cannot be automatically saved
The text was updated successfully, but these errors were encountered: