Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: sys_var startwith 'sys.' not 'sys' #8421 (#8422)

yanxiyuede7bc226493b
diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx
index 67c839bf76f..5e51173673a 100644
--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx
+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx
@@ -183,7 +183,7 @@ const VarReferencePicker: FC<Props> = ({
const handleVarReferenceChange = useCallback((value: ValueSelector, varInfo: Var) => {
// sys var not passed to backend
const newValue = produce(value, (draft) => {
- if (draft[1] && draft[1].startsWith('sys')) {
+ if (draft[1] && draft[1].startsWith('sys.')) {
draft.shift()
const paths = draft[0].split('.')
paths.forEach((p, i) => {