Commit 40af63b1 by Archer Committed by GitHub

perf: remove auto delete invalid item (#3377)

parent d2a56a2f
......@@ -254,12 +254,12 @@ const MultipleReferenceSelector = ({
});
}, [getSelectValue, value]);
useEffect(() => {
const validList = formatList.filter((item) => item.nodeName && item.outputName);
if (validList.length !== value?.length) {
onSelect(validList.map((item) => item.rawValue));
}
}, [formatList, onSelect, value]);
// useEffect(() => {
// const validList = formatList.filter((item) => item.nodeName && item.outputName);
// if (validList.length !== value?.length) {
// onSelect(validList.map((item) => item.rawValue));
// }
// }, [formatList, onSelect, value]);
const ArraySelector = useMemo(() => {
return (
......
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