diff --git a/packages/amis-editor/src/plugin/Each.tsx b/packages/amis-editor/src/plugin/Each.tsx index ed2550785..ba9ae2888 100644 --- a/packages/amis-editor/src/plugin/Each.tsx +++ b/packages/amis-editor/src/plugin/Each.tsx @@ -363,7 +363,11 @@ export class EachPlugin extends BasePlugin { props.value = [{}, {}]; props.className = `${props.className || ''} ae-Editor-list`; - if (props.items && !props.items.className?.includes('eachItem')) { + if ( + props.items && + !props.items.className?.includes('eachItem') && + !Array.isArray(props.items) + ) { props.items = merge( { className: `${props.items.className || ''} ae-Editor-eachItem`