From 3f804339b909160109cf6fe5a4f5f77339cf6180 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 28 Feb 2022 12:29:52 +0100 Subject: [PATCH] :bug: Fix linter issues --- common/src/app/common/pages/migrations.cljc | 4 ++-- frontend/src/app/main/ui/shapes/custom_stroke.cljs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/pages/migrations.cljc b/common/src/app/common/pages/migrations.cljc index 87f7e4af30..4a3ebc5811 100644 --- a/common/src/app/common/pages/migrations.cljc +++ b/common/src/app/common/pages/migrations.cljc @@ -311,7 +311,7 @@ clean-attrs (d/without-nils attrs)] (cond-> shape - (not (empty? clean-attrs)) + (d/not-empty? clean-attrs) (assoc :fills [clean-attrs])))) ;; Add fills to shapes @@ -341,7 +341,7 @@ clean-attrs (d/without-nils attrs)] (cond-> shape - (not (empty? clean-attrs)) + (d/not-empty? clean-attrs) (assoc :strokes [clean-attrs])))) ;; Add strokes to shapes diff --git a/frontend/src/app/main/ui/shapes/custom_stroke.cljs b/frontend/src/app/main/ui/shapes/custom_stroke.cljs index 1b8cd3f2a2..eec58ff19e 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -323,7 +323,6 @@ (> (count (:fills shape)) 1) (some :fill-color-gradient (:fills shape))) one-fill? (= (count (:fills shape)) 1) - no-fills? (= (count (:fills shape)) 0) last-stroke? (= position (- (count (:strokes shape)) 1)) props (-> (obj/get child "props")