Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
featureSelector: fixed bug not showing table containing NA
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Mar 28, 2018
1 parent 209f7e7 commit 48867f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/featureSelector.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ featureSelector <- function(input, output, session, data, features = NULL, featu
render = DT::JS(
"function(data, type, row) {",
paste("var length =", truncate),
"return typeof data !== 'number' && type === 'display' && data.length > length ?",
"return typeof data !== 'number' && data !== null && type === 'display' && data.length > length ?",
"'<span title=\"' + data + '\">' + data.substr(0, length) + '...</span>' : data;",
"}"
)
Expand Down

0 comments on commit 48867f1

Please sign in to comment.