mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
When detaching a typography, the code was setting typography-ref-file and typography-ref-id to nil instead of removing the keys entirely. This caused nil values to leak into text node data through multiple code paths (Draft.js styles, WASM text editor, v2 editor). Fix the issue by: - Filtering nil values in attrs-to-styles (legacy Draft.js encoder) - Using d/txt-merge instead of merge in WASM apply-attrs-to-paragraph - Filtering nil values in attrs->styles (v2 editor style mapper) - Filtering nil values in updateBlockData calls in Draft.js editor - Removing hardcoded nil assignments in text-editor-get-current-styles - Filtering nil values in insert-text before encoding