Skip to content

Commit

Permalink
edit data: when adding new data remove NA (in case of different class)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Feb 7, 2024
1 parent faf15a8 commit bf9885d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/edit-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ edit_data_server <- function(id,
)

if (isTruthy(res_callback) & !isTRUE(only_callback)) {
data <- rbind(data, new, fill = TRUE)
data <- rbind(data, new[, .SD, .SDcols = !anyNA], use.names = TRUE, fill = TRUE)
data_rv$data <- data
update_table(data, data_rv$colnames)
removeModal()
Expand Down

0 comments on commit bf9885d

Please sign in to comment.