|
@@ -29,7 +29,7 @@ export const addDiagnostic = (state, action) => {
|
|
|
}
|
|
|
}
|
|
|
if(num == tmpLis.length){
|
|
|
- tmpLis[0].hasTreat = 1
|
|
|
+ tmpLis[0]['hasTreat'] = 1
|
|
|
let obj = {
|
|
|
"dateValue": '',
|
|
|
"name": tmpLis[0].name,
|
|
@@ -50,8 +50,8 @@ export const delDiagnostic = (state, action) => {
|
|
|
++num
|
|
|
}
|
|
|
}
|
|
|
- if(num == tmpLis.length){
|
|
|
- tmpLis[0].hasTreat = 1
|
|
|
+ if(tmpLis.length>0&&num == tmpLis.length){
|
|
|
+ tmpLis[0]['hasTreat'] = 1
|
|
|
let obj = {
|
|
|
"dateValue": '',
|
|
|
"name": tmpLis[0].name,
|