diff --git a/src/main/frontend/handler/plugin.cljs b/src/main/frontend/handler/plugin.cljs index e6a5ec696..97ca28e09 100644 --- a/src/main/frontend/handler/plugin.cljs +++ b/src/main/frontend/handler/plugin.cljs @@ -99,7 +99,7 @@ (state/reset-all-updates-state) (throw e)))) (fn [mfts] - (when-let [mft (some #(when (= (:id %) id) %) mfts)] + (if-let [mft (some #(when (= (:id %) id) %) mfts)] (ipc/ipc "updateMarketPlugin" (merge (dissoc pkg :logger) mft)) (throw (js/Error. (str ":not-found-in-marketplace" id)))) true))