mirror of
https://github.com/penpot/penpot.git
synced 2025-07-28 23:27:22 +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)
|
config (::config climit)
|
||||||
label (::sv/name mdata)]
|
label (::sv/name mdata)]
|
||||||
|
|
||||||
|
(if climit
|
||||||
(reduce (fn [handler [limit-id key-fn]]
|
(reduce (fn [handler [limit-id key-fn]]
|
||||||
(if-let [config (get config limit-id)]
|
(if-let [config (get config limit-id)]
|
||||||
(let [key-fn (or key-fn noop-fn)]
|
(let [key-fn (or key-fn noop-fn)]
|
||||||
|
@ -208,7 +209,6 @@
|
||||||
:queue (:queue config)
|
:queue (:queue config)
|
||||||
:keyed (not= key-fn noop-fn))
|
:keyed (not= key-fn noop-fn))
|
||||||
|
|
||||||
|
|
||||||
(if (and (= key-fn ::rpc/profile-id)
|
(if (and (= key-fn ::rpc/profile-id)
|
||||||
(false? (::rpc/auth mdata true)))
|
(false? (::rpc/auth mdata true)))
|
||||||
|
|
||||||
|
@ -230,7 +230,8 @@
|
||||||
handler)))
|
handler)))
|
||||||
|
|
||||||
handler
|
handler
|
||||||
(concat global-limits (get-limits mdata)))))
|
(concat global-limits (get-limits mdata)))
|
||||||
|
handler)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; PUBLIC API
|
;; PUBLIC API
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue