Removed useless excalidraw toggle

This commit is contained in:
Simon Cambier
2024-01-20 10:58:36 +01:00
parent b86bbf8407
commit 569d6c73ed
3 changed files with 2 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ async function getAndMapIndexedDocument(
// EXCALIDRAW
// Remove the json code
if (settings.excalidrawIndexing && metadata.frontmatter?.['excalidraw-plugin']) {
if (metadata.frontmatter?.['excalidraw-plugin']) {
const comments =
metadata.sections?.filter(s => s.type === 'comment') ?? []
for (const { start, end } of comments.map(c => c.position)) {