diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 7c0a57c7d..953479dea 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1474,8 +1474,8 @@ (= :frame (get-in objects [(first selected) :type]))))) (defn- paste-shape - [{:keys [selected objects images] :as data} in-viewport?] - (letfn [;; Given a file-id and img (part generated by the + [{:keys [selected objects images] :as data} in-viewport?] ;; TODO: perhaps rename 'objects' to 'shapes', because it contains only + (letfn [;; Given a file-id and img (part generated by the ;; the shapes to paste, not the whole page tree of shapes ;; copy-selected event), uploads the new media. (upload-media [file-id imgpart] (->> (http/send! {:uri (:file-data imgpart) @@ -1583,7 +1583,7 @@ page-id (:current-page-id state) unames (-> (wsh/lookup-page-objects state page-id) - (dwc/retrieve-used-names)) + (dwc/retrieve-used-names)) ;; TODO: move this calculation inside prepare-duplcate-changes? rchanges (->> (dws/prepare-duplicate-changes objects page-id unames selected delta) (mapv (partial process-rchange media-idx))