Do not persist the selected datatable page number, as we always want to start at the first page after a page reload.

This commit is contained in:
Jan Böhmer 2023-03-05 01:11:57 +01:00
parent c27b02512f
commit 02134dc959

View file

@ -66,7 +66,12 @@ export default class extends Controller {
}
stateLoadCallback(settings) {
return JSON.parse( localStorage.getItem(this.getStateSaveKey()) );
const data = JSON.parse( localStorage.getItem(this.getStateSaveKey()) );
//Do not save the start value (current page), as we want to always start at the first page on a page reload
data.start = 0;
return data;
}
connect() {