From 899dc5b680ba29f690c50f887b43da0c484aca0b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 15 Jul 2021 11:57:45 +0200 Subject: [PATCH] :bug: Properly dissoc :metadata prop on image->path conversion. --- frontend/src/app/util/path/shapes_to_path.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/util/path/shapes_to_path.cljs b/frontend/src/app/util/path/shapes_to_path.cljs index 0fb979bb16..8d7c86cbd6 100644 --- a/frontend/src/app/util/path/shapes_to_path.cljs +++ b/frontend/src/app/util/path/shapes_to_path.cljs @@ -139,8 +139,8 @@ (d/without-keys dissoc-attrs) (assoc :type :path) (assoc :content new-content) - (cond-> (= :image type) - (assoc :fill-image metadata)))) + (cond-> (= :image type) (-> (assoc :fill-image metadata) + (dissoc :metadata))))) ;; Do nothing if the shape is not of a correct type shape))