From 418ec34880d7f0eae2ab2c89693ee68c75d28bf2 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Wed, 21 Feb 2024 18:16:44 +0100 Subject: [PATCH] :bug: Fix detaching a copy that has another copy inside produce a validation error --- common/src/app/common/types/file.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/types/file.cljc b/common/src/app/common/types/file.cljc index caad391b8c..eea620e33e 100644 --- a/common/src/app/common/types/file.cljc +++ b/common/src/app/common/types/file.cljc @@ -202,7 +202,7 @@ (when (some? head-component) (get-ref-shape (:data head-file) head-component shape))))] - (d/seek find-ref-shape-in-head parent-heads))) + (some find-ref-shape-in-head parent-heads))) (defn find-remote-shape "Recursively go back by the :shape-ref of the shape until find the correct shape of the original component"