|
@@ -61,7 +61,8 @@ export const setDrugInfo = (state, action) => {
|
|
|
|
|
|
export const clearDrugInfo = (state, action) => {
|
|
|
const res = JSON.parse(JSON.stringify(state));
|
|
|
- res.drugInfo.drugDesc = [];
|
|
|
+ // res.drugInfo.drugDesc = [];
|
|
|
+ if (res.drugInfo && res.drugInfo.drugDesc) { res.drugInfo.drugDesc = [];}
|
|
|
return res
|
|
|
}
|
|
|
|