canvas-website/src/hooks
Jeff Emmett a5e097f786 fix: prevent ValidationError by not setting undefined values in shape.meta
When unpinning a shape, the previous code set pinnedAtZoom, originalX, and
originalY to undefined in shape.meta. This caused a ValidationError because
tldraw requires JSON serializable values (undefined is not valid JSON).

Fixed by using object destructuring to exclude these properties from meta
instead of setting them to undefined.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 20:04:55 -05:00
..
useAdvancedSpeakerDiarization.ts everything working in dev 2025-11-10 11:06:13 -08:00
useCameraControls.ts fix zoom & videochat 2025-09-01 09:44:52 +02:00
useLiveImage.tsx feat: add Drawfast tool, improve share UI, and various UI enhancements 2025-12-15 00:03:12 -05:00
useMaximize.ts feat: add version history, Resend email, CryptID registration flow 2025-12-10 14:21:50 -08:00
usePinnedToView.ts fix: prevent ValidationError by not setting undefined values in shape.meta 2025-12-15 20:04:55 -05:00
usePrivateWorkspace.ts feat: Add GoogleItemShape with privacy badges (Phase 4) 2025-12-04 17:52:54 -08:00
useWebSpeechTranscription.ts update to fix vercel and cloudflare errors 2025-11-10 11:30:33 -08:00
useWhisperTranscriptionSimple.ts fix: resolve TypeScript errors for Cloudflare Pages build 2025-11-29 21:51:54 -08:00