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:
parent
abce1e9cf6
commit
c12159bfb4
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user