Fix double pages on contents dashboard

This commit is contained in:
Elio Struyf
2022-06-11 20:02:35 +02:00
parent 8ed64691c4
commit 7a2b45f031
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ export class PagesListener extends BaseListener {
try {
const page = this.processPageContent(file.filePath, file.mtime, file.fileName, folder.title);
if (page) {
if (page && !pages.find(p => p.fmFilePath === page.fmFilePath)) {
pages.push(page);
}