Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: filder diagrams to keep only related document ones

Smaug6739544f6a056f66
diff --git a/frontend/app/components/MarkdownEditor/MarkdownEditor.vue b/frontend/app/components/MarkdownEditor/MarkdownEditor.vue
index 4d5a03ef..d8c43479 100644
--- a/frontend/app/components/MarkdownEditor/MarkdownEditor.vue
+++ b/frontend/app/components/MarkdownEditor/MarkdownEditor.vue
@@ -96,8 +96,7 @@ const uploadsHandlers = createUploadsHandlers({
const referencedDrawioResources = computed(() => {
const diagrams: Node[] = [];
nodesStore.resources.forEach((resource: Node) => {
- if (!resource.metadata?.drawio) return;
- diagrams.push(resource);
+ if (resource.metadata?.drawio && resource.parent_id == document.value.id) diagrams.push(resource);
});
return diagrams;