diff --git a/app/assets/javascripts/app/controllers/_profile/devices.coffee b/app/assets/javascripts/app/controllers/_profile/devices.coffee index e393c354a..167e8bec2 100644 --- a/app/assets/javascripts/app/controllers/_profile/devices.coffee +++ b/app/assets/javascripts/app/controllers/_profile/devices.coffee @@ -21,12 +21,13 @@ class Index extends App.Controller type: 'GET' url: "#{@apiPath}/user_devices" success: (data) => - @render(data) + @data = data + @render() ) - render: (data) => + render: => @html App.view('profile/devices')( - devices: data + devices: @data || [] ) delete: (e) =>