Commit b7eb4c15 by Archer Committed by GitHub

fix: add multiple selector null check (#3392)

parent 41a8536c
......@@ -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)
);
};
......
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