From bca8180aebb00f4a0e477455d4f975963f2ca403 Mon Sep 17 00:00:00 2001
From: Alejandro Alonso <alejandroalonsofernandez@gmail.com>
Date: Tue, 30 Apr 2024 10:01:29 +0200
Subject: [PATCH] :bug: Fix duplicate component

---
 common/src/app/common/files/libraries_helpers.cljc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/src/app/common/files/libraries_helpers.cljc b/common/src/app/common/files/libraries_helpers.cljc
index 5aa612a52..2aceb35fd 100644
--- a/common/src/app/common/files/libraries_helpers.cljc
+++ b/common/src/app/common/files/libraries_helpers.cljc
@@ -166,7 +166,7 @@
 
         [new-component-shape new-component-shapes  ; <- null in components-v2
          new-main-instance-shape new-main-instance-shapes]
-        (duplicate-component (:data library) component new-component-id)]
+        (duplicate-component component new-component-id (:data library))]
 
     (-> changes
         (pcb/with-page main-instance-page)