mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 02:11:38 +02:00
Add preconditions to the workspace initialization event.
This commit is contained in:
parent
7958c33e34
commit
6e7a20974d
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@
|
||||||
(defn initialize
|
(defn initialize
|
||||||
"Initialize the workspace state."
|
"Initialize the workspace state."
|
||||||
[project page]
|
[project page]
|
||||||
|
{:pre [(uuid? project)
|
||||||
|
(uuid? page)]}
|
||||||
(InitializeWorkspace. project page))
|
(InitializeWorkspace. project page))
|
||||||
|
|
||||||
;; --- Workspace Tooltips
|
;; --- Workspace Tooltips
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue