From d9686b3ef5965d4f75074368b398de4559249453 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 19 Jun 2025 13:45:27 +0800 Subject: [PATCH] # --- src/views/orders/Follow.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index ed31b04..6c005ca 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -73,6 +73,7 @@ function Follow() { const handleSwitchAccount = (value) => { setActiveEmailId(0); + // setExpandTree([]); setCurrentMailboxDEI(value) const opi = accountListDEIMapped[value].OPI_SN @@ -122,7 +123,7 @@ function Follow() { useEffect(() => { const first = currentMailboxDEI || accountDEI[0].value const opi = accountListDEIMapped[first].OPI_SN - setExpandTree(prev => [...prev, ...[`${opi}-today`, `${opi}-todo`, `search-orders`, ...[mailboxActiveNode?.VParent || []]]]) + setExpandTree(prev => [...[`${opi}-today`, `${opi}-todo`, `search-orders`, mailboxActiveNode?.VParent ]]) return () => {} }, [currentMailboxDEI, mailboxNestedDirsActive, mailboxActiveNode])