diff --git a/src/actions/EmailActions.js b/src/actions/EmailActions.js index a769ee6..cd2a0de 100644 --- a/src/actions/EmailActions.js +++ b/src/actions/EmailActions.js @@ -239,7 +239,7 @@ export const getTodoOrdersAction = async (params) => { _raw: { ...o, VKey: o.COLI_SN, VName: o.COLI_ID, VParent:-1, IsTrue: 0, ApplyDate: '', OrderSourceType: 227001, parent: -1 }, })), }, - { + ...(!isEmpty(sticky[1] || []) ? [{ key: key + '-reminder', title: '催信', getMails: false,iconIndex: 'reminder', @@ -253,7 +253,7 @@ export const getTodoOrdersAction = async (params) => { parentIconIndex: 'reminder', _raw: { ...o, VKey: o.COLI_SN, VName: o.COLI_ID, VParent:-1, IsTrue: 0, ApplyDate: '', OrderSourceType: 227001, parent: -1 }, })), - }, + }] : []), ] return { ...acc, [key]: treeNode } }, defaultStickyTree)