fix(plugin): page crash when checking plugin updates with some network issues #5222

This commit is contained in:
charlie
2022-05-24 22:49:49 +08:00
committed by Tienson Qin
parent ab662fa67d
commit 2bd87d5d91

View File

@@ -248,7 +248,7 @@
:on-click #(when-not has-other-pending?
(plugin-handler/check-or-update-marketplace-plugin
(assoc item :only-check (not new-version))
(fn [e] (notification/show! e :error))))}
(fn [^js e] (notification/show! (.toString e) :error))))}
(if installing-or-updating?
(t :plugin/updating)
@@ -780,7 +780,7 @@
(if-let [n (state/get-next-selected-coming-update)]
(plugin-handler/check-or-update-marketplace-plugin
(assoc n :only-check false)
(fn [^js e] (notification/show! e :error)))
(fn [^js e] (notification/show! (.toString e) :error)))
(plugin-handler/close-updates-downloading)))
:disabled