don't overwrite bookmark position if it changed before metadata arrives (#2215)

Fixes issue when creating new bookmark shape where the position would be
reset if you moved it before the bookmark metadata was fetched

### Change Type

- [x] `patch` — Bug fix

### Release Notes

- Fixes issue when creating new bookmark shape where the position would
be reset if you moved it before the bookmark metadata was fetched.
This commit is contained in:
David Sheldrick 2023-11-14 10:33:43 +00:00 committed by GitHub
parent 9d783f65cb
commit 898feb6650
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,9 +381,9 @@ export function registerDefaultExternalContentHandlers(
editor.updateShapes([
{
...shape,
id: shape.id,
type: shape.type,
props: {
...shape.props,
assetId: asset.id,
},
},