From 1df82354e37a19148dd7bcf7ada3aeb8058b5f64 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Thu, 26 Oct 2023 10:13:33 +0200 Subject: [PATCH] fix: exclude deleted notes from network to avoid exception --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 899244e..741b438 100644 --- a/main.js +++ b/main.js @@ -580,6 +580,7 @@ function children(note) return (note.content .match(/\[\[([^\]]*)\]\]/g) || []) .map(l => l.replace("[[", "").replace("]]", "")) + .filter(l => !l.includes("(deleted)")) .map(l => getnote(l)); }