./lib/helios/frontend/javascripts/helios/views.coffee in helios-0.2.2 vs ./lib/helios/frontend/javascripts/helios/views.coffee in helios-0.2.3

- old
+ new

@@ -32,10 +32,10 @@ render: => if @collection @datagrid ?= new Backbone.Datagrid({ collection: @collection, - columns: @collection.first().attributes.keys, + columns: (if @collection.first() then @collection.first().attributes.keys else []), paginated: true, perPage: 20 }) @$el.find("#datagrid").html(@datagrid.el)