mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 22:31:39 +02:00
🐛 Fix incorrect warning on climit initialization when disabled
This commit is contained in:
parent
a89f16e594
commit
757291644b
1 changed files with 30 additions and 29 deletions
|
@ -197,6 +197,7 @@
|
|||
config (::config climit)
|
||||
label (::sv/name mdata)]
|
||||
|
||||
(if climit
|
||||
(reduce (fn [handler [limit-id key-fn]]
|
||||
(if-let [config (get config limit-id)]
|
||||
(let [key-fn (or key-fn noop-fn)]
|
||||
|
@ -208,7 +209,6 @@
|
|||
:queue (:queue config)
|
||||
:keyed (not= key-fn noop-fn))
|
||||
|
||||
|
||||
(if (and (= key-fn ::rpc/profile-id)
|
||||
(false? (::rpc/auth mdata true)))
|
||||
|
||||
|
@ -230,7 +230,8 @@
|
|||
handler)))
|
||||
|
||||
handler
|
||||
(concat global-limits (get-limits mdata)))))
|
||||
(concat global-limits (get-limits mdata)))
|
||||
handler)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; PUBLIC API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue