mirror of
https://github.com/penpot/penpot.git
synced 2025-07-10 12:47:18 +02:00
✨ Remove key warning on import dialog
This commit is contained in:
parent
918d2ab4a9
commit
ada0938e27
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
(ns app.main.ui.dashboard.import
|
(ns app.main.ui.dashboard.import
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
|
[app.common.data.macros :as dm]
|
||||||
[app.common.logging :as log]
|
[app.common.logging :as log]
|
||||||
[app.main.data.events :as ev]
|
[app.main.data.events :as ev]
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
|
@ -340,6 +341,7 @@
|
||||||
(let [editing? (and (some? (:file-id file))
|
(let [editing? (and (some? (:file-id file))
|
||||||
(= (:file-id file) (:editing @state)))]
|
(= (:file-id file) (:editing @state)))]
|
||||||
[:& import-entry {:state state
|
[:& import-entry {:state state
|
||||||
|
:key (dm/str (:id file))
|
||||||
:file file
|
:file file
|
||||||
:editing? editing?
|
:editing? editing?
|
||||||
:can-be-deleted? (> (count files) 1)}]))]
|
:can-be-deleted? (> (count files) 1)}]))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue