Explorar o código

fix: dedupe files to write

Tienson Qin hai 1 ano
pai
achega
2faeafd579
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/modules/outliner/file.cljs

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

@@ -73,7 +73,7 @@
   [pages]
   [pages]
   (when (seq pages)
   (when (seq pages)
     (when-not config/publishing?
     (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)
         (try (do-write-file! repo page-id outliner-op)
              (catch :default e
              (catch :default e
                (notification/show!
                (notification/show!