🐛 Fix issue on set-file-shared

This commit is contained in:
Andrey Antukh
2023-12-13 14:05:30 +01:00
committed by Andrés Moya
parent 55f7656b77
commit d5e3cba92c
2 changed files with 2 additions and 2 deletions

View File

@@ -186,7 +186,7 @@
(when-not (= (:main-instance-page component) (:id page))
(let [component-page (ctf/get-component-page (:data file) component)
main-component (ctst/get-shape component-page (:main-instance-id component))]
;; We must check if the same component has main instances in different pages.
;; We must check if the same component has main instances in different pages.
;; In that case one of those instances shouldn't be main
(if (:main-instance main-component)
(report-error! :component-main