mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
fix(plugin): page crash when checking plugin updates with some network issues #5222
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user