diff --git a/changelog/75_UNRELEASED_xxxx-xx-xx.md b/changelog/75_UNRELEASED_xxxx-xx-xx.md index 5f24b976..23767bbf 100644 --- a/changelog/75_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/75_UNRELEASED_xxxx-xx-xx.md @@ -61,6 +61,7 @@ - Optimized that file uploads are not completely buffered in memory before writing them to disk (thanks @bbx0) - Optimized top right corner menus icon spacing (thanks @TheDodger for the initial work on this) - Fixed again that some dialogs were not properly (too small) displayed (this time mostly affecting Chrome/Edge) +- Fixed that table states (visible columns, sorting, column order and so on) could be reset to default after not accessing/using the corresponding page for a certain amount of time ### API diff --git a/public/js/grocy_datatables.js b/public/js/grocy_datatables.js index 32d1325d..d1ef35e6 100644 --- a/public/js/grocy_datatables.js +++ b/public/js/grocy_datatables.js @@ -8,6 +8,7 @@ $.extend(true, $.fn.dataTable.defaults, { 'scrollX': true, 'colReorder': true, 'stateSave': true, + 'stateDuration': 0, 'stateSaveParams': function(settings, data) { data.search.search = "";