mirror of https://github.com/langgenius/dify.git
fix conversation var restore & description length check
This commit is contained in:
parent
d2f12037da
commit
53faf90bea
|
|
@ -341,6 +341,7 @@ export const useWorkflowRun = () => {
|
|||
|
||||
featuresStore?.setState({ features: mappedFeatures })
|
||||
workflowStore.getState().setEnvironmentVariables(publishedWorkflow.environment_variables || [])
|
||||
workflowStore.getState().setConversationVariables(publishedWorkflow.conversation_variables || [])
|
||||
}, [featuresStore, handleUpdateWorkflowCanvas, workflowStore])
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ const VariableModal = ({
|
|||
// Original check for create new variable
|
||||
if (!env && envList.some(e => e.name === name))
|
||||
return notify({ type: 'error', message: 'name is existed' })
|
||||
if (description.length > 256)
|
||||
return notify({ type: 'error', message: 'description can not be longer than 256 characters' })
|
||||
|
||||
onSave({
|
||||
id: env ? env.id : uuid4(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue