From 8c915d1687bb1599bddd1486428ccd74e5927990 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Mon, 22 May 2023 22:07:03 +0200 Subject: [PATCH] :bug: Fix paste component to another file --- frontend/src/app/main/data/workspace.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 467dec79a..38b3ad16e 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1680,7 +1680,7 @@ ;; Check if the shape is an instance whose master is defined in a ;; library that is not linked to the current file (foreign-instance? [shape paste-objects state] - (let [root (ctn/get-component-shape paste-objects shape) + (let [root (ctn/get-component-shape paste-objects shape {:allow-main? true}) root-file-id (:component-file root)] (and (some? root) (not= root-file-id (:current-file-id state))