mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix constraint-modifier :default arity mismatch
All concrete constraint-modifier methods accept 6 arguments (type, axis, child-before, parent-before, child-after, parent-after) but the :default fallback only declared 5 parameters. Any unknown constraint type would therefore receive 6 args and throw an arity error at runtime. Added the missing sixth underscore parameter. Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
80124657b8
commit
7e9fac4f35
@ -234,7 +234,7 @@
|
||||
after-side-vector (side-vector axis parent-points-after)]
|
||||
(ctm/move-modifiers (displacement center-before center-after before-side-vector after-side-vector))))
|
||||
|
||||
(defmethod constraint-modifier :default [_ _ _ _ _]
|
||||
(defmethod constraint-modifier :default [_ _ _ _ _ _]
|
||||
[])
|
||||
|
||||
(def const->type+axis
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user