diff --git a/frontend/src/app/main/data/workspace/selection.cljs b/frontend/src/app/main/data/workspace/selection.cljs index 56b4e6800..3f22275b9 100644 --- a/frontend/src/app/main/data/workspace/selection.cljs +++ b/frontend/src/app/main/data/workspace/selection.cljs @@ -434,7 +434,9 @@ moved-component (gsh/move component-root delta) pos (gpt/point (:x moved-component) (:y moved-component)) origin-frame (get-in page [:objects frame-id]) - delta (gpt/subtract delta (-> origin-frame :selrect gpt/point)) + delta (cond-> delta + (some? origin-frame) + (gpt/subtract (-> origin-frame :selrect gpt/point))) instantiate-component #(dwlh/generate-instantiate-component changes