fix: add multiple selector null check (#3392)

This commit is contained in:
Archer
2024-12-13 14:15:30 +08:00
committed by GitHub
parent 41a8536c16
commit b7eb4c15de
2 changed files with 3 additions and 2 deletions

View File

@@ -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