improve(ui): remove warning of macro renderer slot for mobile

pull/8219/head
charlie 2023-01-05 12:23:03 +08:00 committed by Andelf
parent 2657f5a2f1
commit c62c7d0ee8
1 changed files with 4 additions and 3 deletions

View File

@ -1514,9 +1514,10 @@
(= name "embed")
(macro-embed-cp config arguments)
(and config/lsp-enabled? (= name "renderer"))
(when-let [block-uuid (str (:block/uuid config))]
(plugins/hook-ui-slot :macro-renderer-slotted (assoc options :uuid block-uuid)))
(= name "renderer")
(when config/lsp-enabled?
(when-let [block-uuid (str (:block/uuid config))]
(plugins/hook-ui-slot :macro-renderer-slotted (assoc options :uuid block-uuid))))
(get @macro/macros name)
((get @macro/macros name) config options)