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.

* 实现了隐藏多余全局变量
This commit is contained in:
Jiangween 2024-11-13 16:59:03 +08:00 committed by GitHub
parent abce1e9cf6
commit c12159bfb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,10 @@ const EditForm = ({
const formatVariables = useMemo(
() =>
formatEditorVariablePickerIcon([
...workflowSystemVariables,
...workflowSystemVariables.filter(
(variable) =>
!['userId', 'appId', 'chatId', 'responseChatItemId', 'histories'].includes(variable.key)
),
...(appForm.chatConfig.variables || [])
]).map((item) => ({
...item,