mirror of
https://github.com/penpot/penpot.git
synced 2026-11-05 01:20:38 +00:00
StyleDictionary returns all nodes from the token tree, including
intermediate group nodes that have no corresponding origin token.
Previously process-sd-tokens tried to parse these as real tokens,
which produced garbage resolved values (e.g. {"$meta$": null, …})
and caused the entire token set validation to fail, blocking all
token creation and editing.
Skip sd-tokens whose origin lookup returns nil so that only actual
tokens are processed.
Closes #9010
Signed-off-by: moorsecopers99 <patellscott18@gmail.com>