tldraw/packages
Mitja Bezenšek 0813e54ca2
Fix validation errors for duplicateProps (#3065)
Should fix `At instance.duplicateProps.offset.x: Expected a number, got
NaN` validation errors.

Wasn't able to reproduce. We only assign the offset here, so
`Vec.Averge` is the most likely offender here and for that to happen I
guess `movingShapes` might not contain any shapes.

### Change Type

- [x] `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]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Add a step-by-step description of how to test your PR here.
2.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Add a brief release note for your PR here.
2024-03-04 17:48:35 +00:00
..
assets Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00
editor Fix validation errors for duplicateProps (#3065) 2024-03-04 17:48:35 +00:00
namespaced-tldraw Remove namespaced-tldraw/tldraw.css (#3068) 2024-03-04 17:13:12 +00:00
state Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00
store Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00
tldraw Fix validation errors for duplicateProps (#3065) 2024-03-04 17:48:35 +00:00
tlschema Remove dependabot config since it only controls version updates? (#3057) 2024-03-04 13:19:51 +00:00
tlsync tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
utils Wrap local/session storage calls in try/catch (take 2) (#3066) 2024-03-04 16:15:20 +00:00
validate Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00