From 3744991f9348fea8b0fecb3438fd7c95a928fd2c Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Mon, 29 Mar 2021 19:05:50 +0800 Subject: Keep expanded state when anything changes in episodes page --- frontend/src/components/tables/plugins/useDefaultSettings.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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(options: TableOptions) { options.autoResetPage = false; } + if (options.autoResetExpanded === undefined) { + options.autoResetExpanded = false; + } + if (options.initialState === undefined) { options.initialState = {}; } -- cgit v1.2.3