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
|
||||
|
Reference in New Issue
Block a user