Skip to content

Commit

Permalink
Map: Pass current instance ID when rendering in editor
Browse files Browse the repository at this point in the history
c2f5712 introduced support for multiple instances on the front end, but forgot to update the back end as well.
  • Loading branch information
iandunn committed Nov 17, 2023
1 parent d45da5c commit 3114557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mu-plugins/blocks/google-map/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import { useBlockProps } from '@wordpress/block-editor';
import metadata from './block.json';
import Main from './components/main';

function Edit() {
function Edit( { attributes } ) {
return (
<div { ...useBlockProps() }>
<Main { ...wporgGoogleMap } />
<Main { ...wporgGoogleMap[ attributes.id ] } />
</div>
);
}
Expand Down

0 comments on commit 3114557

Please sign in to comment.