Kaynağa Gözat

#11046 use replace-first instead of replace

j-ramos 1 yıl önce
ebeveyn
işleme
6196c61d6d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -2347,7 +2347,7 @@
     (save-block-if-changed!
       block
       (if (= new-content content)
-        (replace-first (string/replace old-item-content "[X]" "[x]"))
+        (replace-first (string/replace-first old-item-content "[X]" "[x]"))
         new-content))))
 
 (defn- dwim-in-list