From e0281b553c6eabd38833e20e27de7dbacc179611 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 17 Jan 2025 14:31:02 +0100 Subject: [PATCH] :bug: Fix error when reseting stroke cap --- CHANGES.md | 1 + common/src/app/common/types/shape.cljc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 08248554e..0be459122 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ ### :bug: Bugs fixed - Fix problem with alt key measures being stuck [Taiga #9348](https://tree.taiga.io/project/penpot/issue/9348) +- Fix error when reseting stroke cap ## 2.4.2 diff --git a/common/src/app/common/types/shape.cljc b/common/src/app/common/types/shape.cljc index 7202a67b0..2b138a9d4 100644 --- a/common/src/app/common/types/shape.cljc +++ b/common/src/app/common/types/shape.cljc @@ -63,7 +63,7 @@ (def stroke-caps-line #{:round :square}) (def stroke-caps-marker #{:line-arrow :triangle-arrow :square-marker :circle-marker :diamond-marker}) -(def stroke-caps (set/union stroke-caps-line stroke-caps-marker)) +(def stroke-caps (conj (set/union stroke-caps-line stroke-caps-marker) nil)) (def shape-types #{:frame