Skip to content

Commit 1937aa4

Browse files
committed
Ah, brain poisoned by R's return() syntax; check if data is empty, then check data.colnames to make sure column names are passed in
1 parent 293ea66 commit 1937aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/www/shared/shiny.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@
11951195
},
11961196
renderValue: function(el, data) {
11971197
var $el = $(el).empty();
1198-
if (!data.colnames) return();
1198+
if (!data || !data.colnames) return;
11991199
var colnames = $.makeArray(data.colnames);
12001200
var header = colnames.map(function(x) {
12011201
return '<th>' + x + '</th>';

0 commit comments

Comments
 (0)