fix: handle bad data in list preview
This commit is contained in:
parent
4bd8509d53
commit
f08ae09efc
@ -38,6 +38,10 @@ function renderNestedList(
|
||||
}
|
||||
|
||||
const ListPreview: FC<WidgetPreviewProps<ValueOrNestedValue[], ListField>> = ({ field, value }) => {
|
||||
if (!Array.isArray(value)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{ marginTop: '12px' }}>
|
||||
<label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user