Skip to content

Commit 93d3b78

Browse files
committed
fix shortString is NA or NULL logic
1 parent 69e82f6 commit 93d3b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/graph.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ MessageLogger = R6Class(
512512
self$reactCache[[reactObj$reactId]] <- reactObj
513513
},
514514
shortenString = function(txt, n = 250) {
515-
if (is.na(txt) || is.null(txt)) {
515+
if (is.null(txt) || isTRUE(is.na(txt))) {
516516
return("")
517517
}
518518
if (nchar(txt) > n) {

0 commit comments

Comments
 (0)