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.

Fixes

Smaug6739b52dbbec8480
diff --git a/frontend/components/sidebar/SidebarItem.vue b/frontend/components/sidebar/SidebarItem.vue
index becf2726..d21e0ac5 100644
--- a/frontend/components/sidebar/SidebarItem.vue
+++ b/frontend/components/sidebar/SidebarItem.vue
@@ -89,6 +89,11 @@ const drop = async (event: DragEvent) => {
{ ...draggedItem, parent_id: undefined }
);
}
+ if (draggedItem.type === "document" && props.item.data.type === "default") { // Move document to root
+ documentStore.update(
+ { ...draggedItem, parent_id: undefined, category: undefined }
+ );
+ }
};
</script>