mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
perf: remove auto delete invalid item (#3377)
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user