Просмотр исходного кода

fix: exclude current file of current blocks page

charlie 4 лет назад
Родитель
Сommit
d712a8588c
1 измененных файлов с 1 добавлено и 1 удалено
  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)]