mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 10:06:11 +02:00
🐛 Micro fix in validate functions
This commit is contained in:
parent
4ac2a64a2a
commit
8d5c95dd64
1 changed files with 4 additions and 4 deletions
|
@ -332,8 +332,8 @@
|
||||||
(validate-shape-main-root-top shape file page libraries))
|
(validate-shape-main-root-top shape file page libraries))
|
||||||
|
|
||||||
(if (not= context :not-component)
|
(if (not= context :not-component)
|
||||||
(report-error :root-main-not-allowed
|
(report-error :root-copy-not-allowed
|
||||||
(str/format "Root main component not allowed inside other component")
|
(str/format "Root copy component not allowed inside other component")
|
||||||
shape file page)
|
shape file page)
|
||||||
(validate-shape-copy-root-top shape file page libraries)))
|
(validate-shape-copy-root-top shape file page libraries)))
|
||||||
|
|
||||||
|
@ -345,8 +345,8 @@
|
||||||
(validate-shape-main-root-nested shape file page libraries))
|
(validate-shape-main-root-nested shape file page libraries))
|
||||||
|
|
||||||
(if (= context :not-component)
|
(if (= context :not-component)
|
||||||
(report-error :nested-main-not-allowed
|
(report-error :nested-copy-not-allowed
|
||||||
(str/format "Nested main component only allowed inside other component")
|
(str/format "Nested copy component only allowed inside other component")
|
||||||
shape file page)
|
shape file page)
|
||||||
(validate-shape-copy-root-nested shape file page libraries))))
|
(validate-shape-copy-root-nested shape file page libraries))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue