dev/ckeditor
Lei OT 2 weeks ago
parent acf2c02063
commit d9686b3ef5

@ -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])

Loading…
Cancel
Save