summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-03-29 19:05:50 +0800
committerLASER-Yi <[email protected]>2021-03-29 19:05:50 +0800
commit3744991f9348fea8b0fecb3438fd7c95a928fd2c (patch)
treeabe15fa33d03c34a02dec6e050865d92af1a30a0
parentb1307f6745185280167717ac237cd80babb3f8c6 (diff)
downloadbazarr-3744991f9348fea8b0fecb3438fd7c95a928fd2c.tar.gz
bazarr-3744991f9348fea8b0fecb3438fd7c95a928fd2c.zip
Keep expanded state when anything changes in episodes page
-rw-r--r--frontend/src/components/tables/plugins/useDefaultSettings.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/components/tables/plugins/useDefaultSettings.tsx b/frontend/src/components/tables/plugins/useDefaultSettings.tsx
index 137d94a23..438316739 100644
--- a/frontend/src/components/tables/plugins/useDefaultSettings.tsx
+++ b/frontend/src/components/tables/plugins/useDefaultSettings.tsx
@@ -15,6 +15,10 @@ function useOptions<T extends object>(options: TableOptions<T>) {
options.autoResetPage = false;
}
+ if (options.autoResetExpanded === undefined) {
+ options.autoResetExpanded = false;
+ }
+
if (options.initialState === undefined) {
options.initialState = {};
}