fix(editor): page blocks duplicated when multiple same page name files

This commit is contained in:
charlie
2021-02-05 18:31:08 +08:00
committed by Tienson Qin
parent 7dcebf368b
commit 0fda94a7aa
5 changed files with 83 additions and 11 deletions

View File

@@ -31,7 +31,7 @@
(and (= "change" type)
(nil? (db/get-file path)))
(println "Can't get file in the db: " path)
(js/console.warn "Can't get file in the db: " path)
(and (= "change" type)
(not= content (db/get-file path))