fix(plugin): description modal

This commit is contained in:
charlie
2021-08-16 16:21:45 +08:00
parent 86c2c0a2ee
commit 6afa07ae48
2 changed files with 5 additions and 2 deletions

View File

@@ -101,9 +101,11 @@
(when url
(-> (p/let [content (invoke-exported-api "load_plugin_readme" url)
content (parse-user-md-content content item)]
(and (string/blank? (string/trim content)) (throw nil))
(state/set-state! :plugin/active-readme [content item])
(state/set-modal! display))
(p/catch #(notifications/show! "No README file." :warn)))))
(p/catch #(do (js/console.warn %)
(notifications/show! "No README content." :warn))))))
(defn load-unpacked-plugin
[]