Skip to content

Commit

Permalink
fix: updates indicators values when table is updated (#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdyrod authored Jan 25, 2024
1 parent 4d06fba commit d577706
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,11 @@ class DataValuePresenter(
val tableData = repository.setTableData(dataTableModel, errors)
val updatedTableModel = mapper(tableData)

val updatedIndicators = indicatorTables()

val updatedTables = screenState.value.tables.map { tableModel ->
if (tableModel.id == catComboUid) {
updatedTableModel.copy(overwrittenValues = tableModel.overwrittenValues)
} else if (tableModel.id == null && updatedIndicators != null) {
updatedIndicators
} else {
tableModel
indicatorTables() ?: tableModel
}
}

Expand Down

0 comments on commit d577706

Please sign in to comment.