Skip to content

Commit

Permalink
Remove undefined values from CDS table
Browse files Browse the repository at this point in the history
  • Loading branch information
tsakiro committed Jul 10, 2024
1 parent f26e144 commit e57559a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ const CaseDrillingScheduleTabTable = ({
})
tableWell.total = tableWell.drillingSchedule.values.reduce((acc: any, val: any) => acc + val, 0)
}

if ((!editMode && tableWell.total > 0) || editMode) {
return tableWell
}
})

setRowData(tableWells)
setRowData(tableWells.filter(tw => tw !== undefined))
}
}

Expand Down

0 comments on commit e57559a

Please sign in to comment.