Skip to content

Commit

Permalink
Merge pull request #1210 from equinor/51413
Browse files Browse the repository at this point in the history
When in view mode, hide rows that are empty
  • Loading branch information
tsakiro authored Jul 11, 2024
2 parents 6290774 + 50d9cba commit 7ecbe6e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ const CaseDrillingScheduleTabTable = ({
})
tableWell.total = tableWell.drillingSchedule.values.reduce((acc: any, val: any) => acc + val, 0)
}

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

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

Expand Down

0 comments on commit 7ecbe6e

Please sign in to comment.