From 3fe48727ea9bea2104e29908de07f5fa9dee6a3a Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Tue, 6 Oct 2026 12:54:39 +0200 Subject: [PATCH] :bug: Hide import file rows while the import error list is shown (#12121) When the import modal content moved to import-files-stage* (#9958), the "error list or file rows" if became a when followed by rows that always render. A non-.penpot file yields an analyze error entry with no name, so the modal showed an empty error row below the error list. Render the file rows only when the error list is not shown, as before. Closes #12116 AI-assisted-by: claude-opus-5-5 --- .../src/app/main/ui/dashboard/import.cljs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/import.cljs b/frontend/src/app/main/ui/dashboard/import.cljs index f6962592b4..dd459da077 100644 --- a/frontend/src/app/main/ui/dashboard/import.cljs +++ b/frontend/src/app/main/ui/dashboard/import.cljs @@ -602,7 +602,7 @@ :class (stl/css :context-notification-error)} (tr "dashboard.import.import-error.disclaimer")]) - (when (or (= :import-error status) (and (= :analyze status) errors?)) + (if (or (= :import-error status) (and (= :analyze status) errors?)) [:div {:class (stl/css :import-error-disclaimer)} [:div (tr "dashboard.import.import-error.message1")] [:ul {:class (stl/css :import-error-list)} @@ -624,18 +624,18 @@ :else (tr "dashboard.import.import-error.unknown-error"))])]))] - [:div (tr "dashboard.import.import-error.message2")]]) + [:div (tr "dashboard.import.import-error.message2")]] - (for [entry entries] - [:> import-entry* {:edition edition - :key (dm/str (:uri entry) "/" (:file-id entry)) - :entry entry - :entries entries - :is-progress (= :import-progress status) - :on-edit on-edit - :on-change on-change - :on-delete on-delete - :can-be-deleted (> (count entries) 1)}]) + (for [entry entries] + [:> import-entry* {:edition edition + :key (dm/str (:uri entry) "/" (:file-id entry)) + :entry entry + :entries entries + :is-progress (= :import-progress status) + :on-edit on-edit + :on-change on-change + :on-delete on-delete + :can-be-deleted (> (count entries) 1)}])) (when (some? template) [:> import-entry* {:entry (assoc template :status status)