mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Fix getter
This commit is contained in:
parent
a073520d0e
commit
2d67a92d64
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ Token names should only contain letters and digits separated by . characters.")}
|
|||
(-> (sd/resolve-tokens+ new-tokens #_ {:debug? true})
|
||||
(p/then
|
||||
(fn [resolved-tokens]
|
||||
(let [{:keys [errors resolved-value] :as resolved-token} (get resolved-tokens token-id)]
|
||||
(let [{:keys [errors resolved-value] :as resolved-token} (get resolved-tokens token-name)]
|
||||
(cond
|
||||
resolved-value (p/resolved resolved-token)
|
||||
(sd/missing-reference-error? errors) (p/rejected :error/token-missing-reference)
|
||||
|
|
Loading…
Add table
Reference in a new issue