mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 01:05:54 +08:00
Co-authored-by: wuling <wuling@ke.com>
This commit is contained in:
parent
52857dc0a6
commit
de7bc22649
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user