DataTables data disappears on search or click

Hi all,

I implemented DataTables by doing this on my Template.loginstemplate.helpers:

$(document).ready(function() {
    $('#example').DataTable();
} );

This seems to have subscribed to the data on the UI and a table shows up. But if I try searching, all the rows disappear. Is this because I haven’t subscribed to data properly? Any help would be appreciated, thanks. The table ends up looking like this:

Giving this a bump - I think this is really basic but I haven’t worked with jQuery before and would just need a dynamic subscription on DataTables to the data in my collection.