From 224d466122fc36fd11683880f6be416b672be0fa Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 21 Apr 2022 13:12:39 +0200 Subject: [PATCH] Fix internal error when hoverin over shape --- CHANGES.md | 1 + frontend/src/app/main/data/workspace/path/selection.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 90b6c452f..6e63bf7c0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -45,6 +45,7 @@ ### :bug: Bugs fixed +- Fix internal error when hoverin over shape [Taiga #3237](https://tree.taiga.io/project/penpot/issue/3237) - Fix different behaviour during image drag [Taiga #2279](https://tree.taiga.io/project/penpot/issue/2279) - Fix hidden file name on import [Taiga #3172](https://tree.taiga.io/project/penpot/issue/3172) - Fix unneccessary scrollbars at the color list [Taiga #3211](https://tree.taiga.io/project/penpot/issue/3211) diff --git a/frontend/src/app/main/data/workspace/path/selection.cljs b/frontend/src/app/main/data/workspace/path/selection.cljs index df6366a6d..47be93517 100644 --- a/frontend/src/app/main/data/workspace/path/selection.cljs +++ b/frontend/src/app/main/data/workspace/path/selection.cljs @@ -50,7 +50,7 @@ id (get-in state [:workspace-local :edition]) content (st/get-path state :content) selected-point? #(gsh/has-point-rect? selrect %) - selected-points (get-in state [:workspace-local :edit-path id :selected-points]) + selected-points (or (get-in state [:workspace-local :edit-path id :selected-points]) #{}) positions (into (if shift? selected-points #{}) (comp (filter #(not (= (:command %) :close-path))) (map (comp gpt/point :params))