mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +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[]>([]);
|
const [navigationPath, setNavigationPath] = useState<string[]>([]);
|
||||||
|
|
||||||
|
// Make sure the value is an array of arrays
|
||||||
const formatValue = useMemo(() => {
|
const formatValue = useMemo(() => {
|
||||||
return Array.isArray(value) ? value : [];
|
return Array.isArray(value) ? value.filter((v) => Array.isArray(v)) : [];
|
||||||
}, [value]);
|
}, [value]);
|
||||||
|
|
||||||
// Close when clicking outside
|
// Close when clicking outside
|
||||||
|
@@ -328,7 +328,7 @@ export const filterWorkflowNodeOutputsByType = (
|
|||||||
valueType === WorkflowIOValueTypeEnum.arrayAny ||
|
valueType === WorkflowIOValueTypeEnum.arrayAny ||
|
||||||
!output.valueType ||
|
!output.valueType ||
|
||||||
output.valueType === WorkflowIOValueTypeEnum.any ||
|
output.valueType === WorkflowIOValueTypeEnum.any ||
|
||||||
validTypeMap[valueType].includes(output.valueType)
|
validTypeMap[valueType]?.includes(output.valueType)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user