Skip to content

Commit

Permalink
remove modal before update table
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Jan 8, 2024
1 parent e2ec08d commit baa1025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/edit-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ edit_data_server <- function(id,
if (isTruthy(res_callback) & !isTRUE(only_callback)) {
data_updated <- data_updated[order(.datamods_id)]
data_rv$data <- copy(data_updated)
update_table(data_updated, data_rv$colnames)
removeModal()
update_table(data_updated, data_rv$colnames)
} else {
NULL
}
Expand Down Expand Up @@ -401,8 +401,8 @@ edit_data_server <- function(id,
data <- data[.datamods_id != input$delete]
data <- data[order(.datamods_id)]
data_rv$data <- data
update_table(data, data_rv$colnames)
removeModal()
update_table(data, data_rv$colnames)
} else {
NULL
}
Expand Down

0 comments on commit baa1025

Please sign in to comment.