perf: remove auto delete invalid item (#3377)

This commit is contained in:
Archer 2024-12-11 22:46:32 +08:00 committed by GitHub
parent d2a56a2fed
commit 40af63b1dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 (