mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor: simplify filteredHumanInputFormDataList computation by removing useMemo
This commit is contained in:
@ -41,9 +41,7 @@ const HumanInputFormList = ({
|
|||||||
}, {} as Record<string, { showEmailTip: boolean, isEmailDebugMode: boolean, showDebugModeTip: boolean }>)
|
}, {} as Record<string, { showEmailTip: boolean, isEmailDebugMode: boolean, showDebugModeTip: boolean }>)
|
||||||
}, [getHumanInputNodeData, humanInputFormDataList])
|
}, [getHumanInputNodeData, humanInputFormDataList])
|
||||||
|
|
||||||
const filteredHumanInputFormDataList = useMemo(() => {
|
const filteredHumanInputFormDataList = humanInputFormDataList.filter(formData => formData.display_in_ui)
|
||||||
return humanInputFormDataList.filter(formData => formData.display_in_ui)
|
|
||||||
}, [humanInputFormDataList])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mt-2 flex flex-col gap-y-2">
|
<div className="mt-2 flex flex-col gap-y-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user