diff --git a/packages/plugins/map/src/client/block/index.tsx b/packages/plugins/map/src/client/block/index.tsx index 365373dad..26639663e 100644 --- a/packages/plugins/map/src/client/block/index.tsx +++ b/packages/plugins/map/src/client/block/index.tsx @@ -18,12 +18,14 @@ export const MapBlockOptions: React.FC = (props) => { const schemaInitializer = useContext(SchemaInitializerContext); useEffect(() => { - children.push({ - key: 'mapBlock', - type: 'item', - title: generateNTemplate('Map'), - component: 'MapBlockInitializer', - }); + if (!children.find((item) => item.component === 'MapBlockInitializer')) { + children.push({ + key: 'mapBlock', + type: 'item', + title: generateNTemplate('Map'), + component: 'MapBlockInitializer', + }); + } }, []); return (