Преглед изворни кода

fix: dedupe files to write

Tienson Qin пре 1 година
родитељ
комит
2faeafd579
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/frontend/modules/outliner/file.cljs

+ 1 - 1
src/main/frontend/modules/outliner/file.cljs

@@ -73,7 +73,7 @@
   [pages]
   (when (seq pages)
     (when-not config/publishing?
-      (doseq [[repo page-id outliner-op] (set pages)]
+      (doseq [[repo page-id outliner-op] (set (map #(take 3 %) pages))] ; remove time to dedupe pages to write
         (try (do-write-file! repo page-id outliner-op)
              (catch :default e
                (notification/show!