diff options
author | LASER-Yi <[email protected]> | 2021-03-29 19:05:50 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-03-29 19:05:50 +0800 |
commit | 3744991f9348fea8b0fecb3438fd7c95a928fd2c (patch) | |
tree | abe15fa33d03c34a02dec6e050865d92af1a30a0 | |
parent | b1307f6745185280167717ac237cd80babb3f8c6 (diff) | |
download | bazarr-3744991f9348fea8b0fecb3438fd7c95a928fd2c.tar.gz bazarr-3744991f9348fea8b0fecb3438fd7c95a928fd2c.zip |
Keep expanded state when anything changes in episodes page
-rw-r--r-- | frontend/src/components/tables/plugins/useDefaultSettings.tsx | 4 |
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 = {}; } |