diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs index 4b970dd1cb..5c96b00077 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs @@ -165,12 +165,6 @@ (let [key (events/listen js/document "keydown" on-key-down)] #(events/unlistenByKey key))) - (mf/with-effect [fonts] - (when (seq fonts) - (let [sel-id (:id @selected)] - (when-not (some #(= (:id %) sel-id) fonts) - (reset! selected (first fonts)))))) - (mf/with-effect [@selected] (when-let [inst (mf/ref-val flist)] (when-let [index (:index @selected)]