Explorar o código

fix: exclude current file of current blocks page

charlie %!s(int64=4) %!d(string=hai) anos
pai
achega
d712a8588c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/components/page.cljs

+ 1 - 1
src/main/frontend/components/page.cljs

@@ -91,7 +91,7 @@
     [:div.page-blocks-inner
 
      ;; more than one file conflict
-     (when (seq grouped-blocks-by-file)
+     (when (seq (dissoc grouped-blocks-by-file file-path))
        [:div.conflict-files-warning-wrap
         [:h3 "⚠️ Those pages have the same title, you might want to only keep one file: "]
         (for [[file-path blocks] (into (sorted-map) grouped-blocks-by-file)]