penpot/frontend
Andrey Antukh 94a6ba4afb 🐛 Fix crash when a nil shape id reaches WASM modifiers
A modif-tree containing a nil shape id crashed the WASM heap write
with "Cannot read properties of null (reading '__u32_buffer')" in
propagate-modifiers. Production builds elide the upstream asserts,
so a nil id (e.g. update-dimensions called with a missing shape's
parent id in the variants flow) reached the uuid heap write.

Drop nil-keyed modif-tree entries in apply-wasm-modifiers and
set-wasm-modifiers before they reach propagate-modifiers and
set-structure-modifiers, filter nil ids at the parse level, and
guard the variant reposition/creation events against missing shapes.

AI-assisted-by: hy3
2026-08-03 17:44:29 +02:00
..
2026-06-22 14:35:10 +02:00
2026-05-29 11:24:58 +02:00
2026-04-07 21:35:00 +02:00
2026-07-30 16:56:10 +02:00
2026-07-30 13:05:28 +02:00
2026-07-31 18:53:05 +02:00
2026-07-31 18:53:05 +02:00
2026-07-31 18:53:05 +02:00
2026-07-31 18:53:05 +02:00