mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Properly reset the page length when reloading a datatable
Fixes issue #309
This commit is contained in:
parent
2b793bf242
commit
7b87b00b44
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ export default class extends Controller {
|
||||||
if (data) {
|
if (data) {
|
||||||
//Do not save the start value (current page), as we want to always start at the first page on a page reload
|
//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;
|
data.start = 0;
|
||||||
|
//50 is the default length supplied by datatables, reset it to that value
|
||||||
|
data.length = 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue