You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the issue in Dify version 0.6.11 where validation of output variables with the same prefix prevents input, and to ensure that validation occurs on blur rather than during input changes, you can modify the handleVarKeyBlur function in the ConfigModal component. The handleVarKeyBlur function is already set up to perform validation on blur. Here is the relevant part of the code:
This function updates the label field of tempPayload when the input field loses focus (on blur). Additionally, the handlePayloadChange function ensures that validation occurs when the variable field is changed:
Self Checks
Dify version
0.6.11
Cloud or Self Hosted
Cloud, Self Hosted (Docker), Self Hosted (Source)
Steps to reproduce
output var validate keyAlreadyExists. This behavior prevent input. when outputs have same prefix.
e.g.
result
result_b
I can't input result_b, because result is exists. Normally, the validation should be after blur confirm, not in input changing.
✔️ Expected Behavior
validate in blur, not in change.
❌ Actual Behavior
validate in change. I can't change, delete, input...
![image](https://private-user-images.githubusercontent.com/9697715/343027345-3ce9b6f5-ab38-4e59-bc79-64d80ccd9830.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MDY4NDEsIm5iZiI6MTcxOTcwNjU0MSwicGF0aCI6Ii85Njk3NzE1LzM0MzAyNzM0NS0zY2U5YjZmNS1hYjM4LTRlNTktYmM3OS02NGQ4MGNjZDk4MzAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MzBUMDAxNTQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTM4MDFlYTNlNGEyYzJjMWMxNjFkZjI2MmYxZGE5YzI0MGMwMDI2OWY5MzMwMDg3YTk1Y2ZhMGFhYTI4ZDkyNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YM80LaAtfnMixpb-sySkPSe7Cgu3YS16ADc1H8Gy7Ck)
The text was updated successfully, but these errors were encountered: