Commit c12159bf by Jiangween Committed by GitHub

Remove some global variables (#3143)

* Restore docSite content based on upstream/4.8.13-dev (#3138)

* Restore docSite content based on upstream/4.8.13-dev

* 4813.md缺少更正

* 去除多余全局变量

* Revert "Restore docSite content based on upstream/4.8.13-dev (#3138)"

This reverts commit af4380a332647a0dd2eaa74716959298a1ac72e7.

* 实现了隐藏多余全局变量
parent abce1e9c
...@@ -104,7 +104,10 @@ const EditForm = ({ ...@@ -104,7 +104,10 @@ const EditForm = ({
const formatVariables = useMemo( const formatVariables = useMemo(
() => () =>
formatEditorVariablePickerIcon([ formatEditorVariablePickerIcon([
...workflowSystemVariables, ...workflowSystemVariables.filter(
(variable) =>
!['userId', 'appId', 'chatId', 'responseChatItemId', 'histories'].includes(variable.key)
),
...(appForm.chatConfig.variables || []) ...(appForm.chatConfig.variables || [])
]).map((item) => ({ ]).map((item) => ({
...item, ...item,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment