From d6cf195bfc4cd5932441209e6d9914c674301ecd Mon Sep 17 00:00:00 2001
From: Linus Rath <139418639+rathlinus@users.noreply.github.com>
Date: Sun, 15 Mar 2026 16:13:06 +0100
Subject: [PATCH] Fix nested button hydration error in sidebar mailbox tree
---
components/layout/sidebar.tsx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/components/layout/sidebar.tsx b/components/layout/sidebar.tsx
index 559f6923..73d89de4 100644
--- a/components/layout/sidebar.tsx
+++ b/components/layout/sidebar.tsx
@@ -191,11 +191,20 @@ function MailboxTreeItem({
{node.name}
{node.unreadEmails > 0 && (
-
+
)}
{node.totalEmails}