From 48867f1ad72218eb084dc11d7311bc01dfc86b10 Mon Sep 17 00:00:00 2001 From: Schultheis Date: Wed, 28 Mar 2018 14:58:20 +0200 Subject: [PATCH] featureSelector: fixed bug not showing table containing NA --- R/featureSelector.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/featureSelector.R b/R/featureSelector.R index 8618491..f77bb01 100644 --- a/R/featureSelector.R +++ b/R/featureSelector.R @@ -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 ?", "'' + data.substr(0, length) + '...' : data;", "}" )