mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
Improvements to historoy management.
This commit is contained in:
parent
6245ccc599
commit
37454ca305
6 changed files with 284 additions and 162 deletions
|
@ -45,6 +45,14 @@
|
|||
(when (= v x) idx))
|
||||
coll)))
|
||||
|
||||
(defn replace-by-id
|
||||
[coll value]
|
||||
{:pre [(vector? coll)]}
|
||||
(mapv (fn [item]
|
||||
(if (= (:id item) (:id value))
|
||||
value
|
||||
item)) coll))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Numbers Parsing
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue