|
@@ -839,11 +839,11 @@ const initIcuInfoListName = (n) => {
|
|
|
};
|
|
|
const surgeryListLength = () => {
|
|
|
for (let index = 0; index < props.patient.surgeryList.length; index++) {
|
|
|
- if (props.patient.surgeryList.name == null || props.patient.surgeryList.name == "-") {
|
|
|
+ if (props.patient.surgeryList[index].name == null || props.patient.surgeryList[index].name == "-") {
|
|
|
if (index < 5) {
|
|
|
return 5
|
|
|
} else {
|
|
|
- return index+1
|
|
|
+ return index
|
|
|
}
|
|
|
}
|
|
|
|