mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
fix: add multiple selector null check (#3392)
This commit is contained in:
@@ -184,8 +184,9 @@ export const MultipleRowArraySelect = ({
|
||||
|
||||
const [navigationPath, setNavigationPath] = useState<string[]>([]);
|
||||
|
||||
// Make sure the value is an array of arrays
|
||||
const formatValue = useMemo(() => {
|
||||
return Array.isArray(value) ? value : [];
|
||||
return Array.isArray(value) ? value.filter((v) => Array.isArray(v)) : [];
|
||||
}, [value]);
|
||||
|
||||
// Close when clicking outside
|
||||
|
@@ -328,7 +328,7 @@ export const filterWorkflowNodeOutputsByType = (
|
||||
valueType === WorkflowIOValueTypeEnum.arrayAny ||
|
||||
!output.valueType ||
|
||||
output.valueType === WorkflowIOValueTypeEnum.any ||
|
||||
validTypeMap[valueType].includes(output.valueType)
|
||||
validTypeMap[valueType]?.includes(output.valueType)
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user