|
@@ -293,7 +293,7 @@ export const getInstroduceMore = (drugIdList) =>{
|
|
|
export const commonTreatAddToAdvice = () => {
|
|
|
return (dispatch, getState) => {
|
|
|
const state = getState();
|
|
|
- if(state.treat.treatItem.treatIndex === 0 && state.treat.isFirstMainDiag) {
|
|
|
+ if(state.treat.treatItem.id === state.diagnosticList.diagnosticList[0].id && state.treat.isFirstMainDiag) {
|
|
|
dispatch({
|
|
|
type: IS_FIRST_MAIN_DIAG
|
|
|
})
|