When the data on the table changes, for example, by appling an external filter, the currentPage variable is not reseted to 1. If you are in a page different than the first one and the filtered data produces less rows than the necesary for that page, the table becomes blank and the datatable info at is wrong, for example, it will say "10-3 of 3"
\
Fix:
The watcher resets the currentPage to 1 each time the rows change
Current situation:
When the data on the table changes, for example, by appling an external filter, the currentPage variable is not reseted to 1. If you are in a page different than the first one and the filtered data produces less rows than the necesary for that page, the table becomes blank and the datatable info at is wrong, for example, it will say "10-3 of 3"
\ Fix:
The watcher resets the currentPage to 1 each time the rows change