Fix ExplodedExample.tsx (#2068)

Previous implementation was incorrect, causing the following bug:


![image](https://github.com/tldraw/tldraw/assets/26308297/03f2a996-dd58-4864-8f89-8e7af2ecca69)


### Change Type

- [] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [x] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
antonio moura 2023-10-13 02:28:59 -06:00 committed by GitHub
parent 8f1850785e
commit 981ef61810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ import {
ContextMenu, ContextMenu,
TldrawEditor, TldrawEditor,
TldrawUi, TldrawUi,
defaultShapeTools,
defaultShapeUtils, defaultShapeUtils,
defaultTools, defaultTools,
} from '@tldraw/tldraw' } from '@tldraw/tldraw'
@ -14,7 +15,7 @@ export default function ExplodedExample() {
<TldrawEditor <TldrawEditor
initialState="select" initialState="select"
shapeUtils={defaultShapeUtils} shapeUtils={defaultShapeUtils}
tools={defaultTools} tools={[...defaultTools, ...defaultShapeTools]}
persistenceKey="exploded-example" persistenceKey="exploded-example"
> >
<TldrawUi> <TldrawUi>